Hi,
I am using server side paging in the grid. Based on the user’s selection on the profile, I call $("#my-jqxgrid").jqxGrid("updatebounddata")
. The selected profile name is sent to the server as the result of the updatebounddata call. The server replies data of the first page in JSON. Along with it, a list of new columns, a new page size and a list of new page size options are returned, and they are saved in global variables on the client side with the beforeprocessing callback function for the source object. Later in the event handler for the bindingcomplete event of the grid, they are used to update the grid as follow:
$("#my-jqxgrid").on("bindingcomplete", function(event) {
if (isProfileChanged) {
$("#my-jqxgrid").jqxGrid(
{ columns: newColumns
, pagesize: newPageSize
, pagesizeoptions: newPagesizeoptions
}
);
}
});
The problem is that when pagesize or pagesizeoptions is updated this way, it triggers the grid to make an additional server side call. If only the columns are updated $("#my-jqxgrid").jqxGrid( { columns: newColumns } )
, no additional server side call. Is there a way to skip the server side call when pagesize and pagesizeoptions are also updated? Or, is there other way to update the pagesize and pagesizeoptions of the grid?
Thanks