Reputation: 155
How to set up a current page number when I am creating a jqGrid
?
I tried to add this :
$("#grid").trigger("reloadGrid", [{ page: number }]);
after this code.
$("#grid").jqGrid(...);
But it didn't help me.
Upvotes: 1
Views: 3543
Reputation: 221997
In the most scenarios you can just add page: number
parameter to the grid during creating it (like page: 2
for example): $("#grid").jqGrid(..., page: number, ...);
. One can require to reloadthe grid only if one would fill the grid in the wrong way (using addRowData
in the loop).
Upvotes: 1