jQWidgets Forums

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts

  • dchauhan
    Participant

    sorry this is the code

    queryList:[
    {"available": false,"userName": "174861","queryType": "P ","businessModelName": "Branch Productivity","queryName": "Demo BP Chart","status": "N","reportType": "C","creationDate": "2014-07-29 14:38:33.683","updateDate": "2014-07-29","defaultReportFormat": "X","defaultReportFormatImg": "X"}]
     
            var QueryListData = new YAHOO.lang.JSON.parse(queryList);
     
            var QueryListDataSource =
                    {
                        datatype: "json",
                        datafields: [
                            {name: 'available', type: 'bool'},
                            {name: 'userName', type: 'string'},
                            {name: 'queryType', type: 'string'},
                            {name: 'businessModelName', type: 'string'},
                            {name: 'queryName', type: 'string'},
                            {name: 'status', type: 'string'},
                            {name: 'creationDate', type: 'date', format: 'yyyy-MM-dd HH:mm:ss.f'},
                            {name: 'updateDate', type: 'date', format: 'yyyy-MM-dd HH:mm:ss.f'},
                            {name: 'reportType', type: 'string'},
                            {name: 'defaultReportFormat', type: 'string'},
                            {name: 'defaultReportFormatImg', type: 'string'}
                        ],
                        id: 'QueryListid',
                        localdata: QueryListData
                    };
     
            QueryListSourceAdapter = new $.jqx.dataAdapter(QueryListDataSource);
     
     
        $(tagName).jqxGrid({
            source: QueryListSourceAdapter,
            columns: [
                {text: 'Select', menu: false, groupable: false, sortable: false, datafield: 'available', columntype: 'checkbox', width: 50},
                {text: 'queryType', dataField: 'queryType'},
                {text: 'Query Type', dataField: 'businessModelName', width: 150},
                {text: 'Report Name', groupable: false, dataField: 'queryName', width: 460},
                {text: 'Creation Date', dataField: 'creationDate', width: 200, cellsformat: 'D', filtertype: 'date'},
                {text: 'Update Date', dataField: 'updateDate', width: 200, cellsformat: 'dddd, MMMM dd, yyyy', filtertype: 'date'},
                {text: 'Report Format', dataField: 'reportType', width: 100, align: 'center', cellsalign: 'center',cellsrenderer: reportTypeRenderer},
                {text: 'User Name', dataField: 'userName', hidden: 'true'},
                {text: 'Default Report Format text', dataField: 'defaultReportFormat', hidden: 'true'}
            ]
        });
    
    in reply to: uncheckall is not working uncheckall is not working #58327

    dchauhan
    Participant

    Thanks I updated my jqwidgets and it worked.

    in reply to: Grid Drill Down Selection Grid Drill Down Selection #54286

    dchauhan
    Participant

    Nevermind i figured it out. Thanks. I had to change the datasource as well.

    Thanks!

    in reply to: Grid Drill Down Selection Grid Drill Down Selection #54284

    dchauhan
    Participant

    My data is dynamic and i am setting the headers based on the new data. So on the first go i may have Book Title and then in the drill down it can be a different title. I need the whole structure to change based on the data


    dchauhan
    Participant

    How do I define them? I used the example for text with icon in the demo? I need to provide text with icon.

    in reply to: jqxDragDrop selected item jqxDragDrop selected item #26903

    dchauhan
    Participant

    So how do I know which object I am dragging?

    in reply to: Date Formatting not working Date Formatting not working #25286

    dchauhan
    Participant

    Great thank you.. that worked!

Viewing 7 posts - 1 through 7 (of 7 total)