jQWidgets Forums
Forum Replies Created
-
Author
-
September 3, 2013 at 1:25 pm in reply to: Stop grid refreshing on page load Stop grid refreshing on page load #28229
I have the following:
if(typeof $rootScope.gridDataAdapter == 'undefined') { $rootScope.gridDataAdapter = new $.jqx.dataAdapter(BlotterSourceFactory.source()); //$rootScope.gridDataAdapter = new $.jqx.dataAdapter(BlotterSourceFactory.source()); grid = $("#jqxgrid").jqxGrid({ width: 1000, height: 560, source: $rootScope.gridDataAdapter, theme: getDemoTheme(), sortable: true, filterable: true, autosavestate: false, altrows: true, groupable: true, columnsresize: true, pageable: true, columnsreorder: true, selectionmode: 'multiplerowsextended', pagesizeoptions: [ '20', '100', '1000' ], columns: columns }); } else { alert('grid ' + $('#jqxgrid')); $('#jqxgrid').jqxGrid('updatebounddata'); $('#jqxgrid').jqxGrid('render'); $('#jqxgrid').jqxGrid('refreshdata'); }
I check to see if we already have a data adapter, if not then I create one (using angularjs) and then create the grid. That all works of. But if I already have a data adapter I just tell the grid to (i guessed this part) render and update itself but on the screen the element is just an empty div.
Any ideas?
June 10, 2013 at 11:24 am in reply to: JSON grid addRow not working JSON grid addRow not working #22877Ok, got it. But…
The row data in the grid is subtly different from the data. So, in the data I may have:
{a:1, b:2, c[x:1, y:1]} which means the grid needs to be told: (DATA FORMAT 1)
a, b, c>x, y>x
But when I add to the grid I only add the denormalised view, i.e.
{a:1, b:2, x:1, y:1} (DATA FORMAT 2)
So, is there a transformation step i can use (the same as the grid uses) to transform DATA FORMAT 1 to DATA FORMAT 2?
Thanks
June 5, 2013 at 10:28 am in reply to: Grid saved state loading issue Grid saved state loading issue #22623Also, get this error as well:
TypeError: Cannot read property ‘text’ of undefined
Once this error is thrown I’m then unable to load the grid state as this error is continually thrown.
May 31, 2013 at 11:13 am in reply to: Multiple row select problem Multiple row select problem #22263Ah ok, understood and makes complete sense. If I did want to prevent this how would I go about it as I believe our users may need this functionality – one line change or more involved?
May 31, 2013 at 11:12 am in reply to: Column separated filter on JQXGrid Column separated filter on JQXGrid #22262Thanks Peter. Do you have an example of how to use this?
Thanks but what I mean is can we have multiple chained custom filters. So, apply a filter then have the ability to add a new:
Show rows where:
X AND Y
Show rows where:
A OR B
etc.
Or, failing that, could we apply multiple filters that build on each other. In other words changing the filter will not overwrite the underlying data filter if one is applied already.
It’s harder to describe than it actually is…
-
AuthorPosts