We tried to set the pageSize before reloading ( "dataBind" ) the grid. From the debugging we did, it was noticed that right after setting the new dataSource (even though the dataSource itself has the new value of the pageSize ) the last value is applied again so what we see in the UI is flicker. For a second or so the new ( "25" ) size is set and right after that the grid goes to the previous old value. var jsonPDataSourceOptions = { urlType: 'remoteUrl', dataSource: ajaxUrl, paging: { enabled: true, pageSize: 25 }, responseDataKey: 'd.results.data' }; var igDs = new $.ig.JSONPDataSource(jsonPDataSourceOptions); igDs.pageSize(25); self.options.gridOptions.dataSource = igDs; $(self.options.jobsGridSelector, self.element).igGrid("option", "dataSource", igDs); $(self.options.jobsGridSelector, self.element).igGrid("dataBind");
Hi,
In the best possible scenario it will go into the next service release which is scheduled for the middle of December 2012.
In the other case it will go into the January service release which is scheduled around 10th of January 2013.
Best regards,
Martin Pavlov
Infragistics, Inc.
Is there any way that we can know when this issue will be is fixed?
Hi Georgi,
We have an internal bug that states: igGridPaging doesn't take into account paging options of the $.ig.DataSource instance and overrides them.
I guess you are observing the same thing.
I'm not sure what is the case which you're trying to achieve, so I'm not able to think of a good solution.
The first thing that comes into my mind is to call $("#grid1").igGridPaging("option", "pageSize", 5); but that will make an additional AJAX request to the server.
Another solution is to recreate the grid with the correct page size set in the igGridPaging options.