jQWidgets Forums
Forum Replies Created
Viewing 7 posts - 1 through 7 (of 7 total)
-
Author
-
August 19, 2014 at 2:36 pm in reply to: Formatting a date retrieved from the database Formatting a date retrieved from the database #58521
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'} ] });
Thanks I updated my jqwidgets and it worked.
Nevermind i figured it out. Thanks. I had to change the datasource as well.
Thanks!
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
January 29, 2014 at 2:49 pm in reply to: Getting The selected value from a dropdown with image Getting The selected value from a dropdown with image #48613How do I define them? I used the example for text with icon in the demo? I need to provide text with icon.
So how do I know which object I am dragging?
July 16, 2013 at 9:00 pm in reply to: Date Formatting not working Date Formatting not working #25286Great thank you.. that worked!
-
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)