jQWidgets Forums
Forum Replies Created
-
Author
-
August 12, 2014 at 4:51 pm in reply to: TreeGrid AddRow g is undefined TreeGrid AddRow g is undefined #58288
After I add the row, the treegrid shows the correct data but if I select any row on the treegrid, I get the TypeError: g is undefined.
It appears the issue is that I have a class .overlay in my css and is conflicting with jqxwidgets.
I have narrowed down the problem to the main.css file, but what css would cause the dropdown not to work. It works fine on the desktop just not on mobile devices.
Here is a link to a test of the example in your documentation and I can’t select from the dropdown on my iphone.
April 4, 2014 at 4:06 pm in reply to: grid aggregates disappear when refreshing data grid aggregates disappear when refreshing data #52574Perfect, worked great.
April 3, 2014 at 4:33 pm in reply to: grid aggregates disappear when refreshing data grid aggregates disappear when refreshing data #52526Here is an example of code I created in jsfiddle that shows how the aggregates disappear and can’t get them back.
If you run it and then click Refresh Data, the aggregates go away.
<div id='jqxWidget'> <div id="jqxgrid"></div> </div> <button name="refreshData" id="refreshData">Refresh Data</button> var data = generatedata(500); var source = { localdata: data, datafields: [{ name: 'firstname', type: 'string' }, { name: 'lastname', type: 'string' }, { name: 'productname', type: 'string' }, { name: 'date', type: 'date' }, { name: 'quantity', type: 'number' }, { name: 'price', type: 'number' }], datatype: "array" }; var adapter = new $.jqx.dataAdapter(source); $("#jqxgrid").jqxGrid({ width: 700, theme: 'energyblue', source: adapter, sortable: true, showstatusbar: true, showaggregates: true, sorttogglestates: 1, columns: [{ text: 'First Name', datafield: 'firstname', columngroup: 'Name', width: 90 }, { text: 'Last Name', columngroup: 'Name', datafield: 'lastname', width: 90 }, { text: 'Product', datafield: 'productname', width: 170 }, { text: 'Order Date', datafield: 'date', width: 160, cellsformat: 'dd-MMMM-yyyy' }, { text: 'Quantity', datafield: 'quantity', width: 80, cellsalign: 'right', aggregates: ['sum'], aggregatesrenderer: function (aggregates) { var renderstring = ''; $.each(aggregates, function (key, value) { renderstring = value; }); return '<div class=\"jqxSBCenter\">' + renderstring + '</div>'; } }, { text: 'Unit Price', datafield: 'price', cellsalign: 'right', cellsformat: 'c2' }] }); $('#jqxgrid').on('bindingcomplete', function() { $('#jqxgrid').jqxGrid('refreshaggregates'); $('#jqxgrid').jqxGrid('renderaggregates'); }); $('#refreshData').jqxButton({ width: 100, height: 30 }).click(function() { var data1 = generatedata(10); var source1 = { localdata: data1, datafields: [{ name: 'firstname', type: 'string' }, { name: 'lastname', type: 'string' }, { name: 'productname', type: 'string' }, { name: 'date', type: 'date' }, { name: 'quantity', type: 'number' }, { name: 'price', type: 'number' }], datatype: "array" }; $('#jqxgrid').jqxGrid('source', source1); $('#jqxgrid').jqxGrid('refreshaggregates'); $('#jqxgrid').jqxGrid('renderaggregates'); });
That worked, thanks.
-
AuthorPosts