How to program page to next / previous page in jqGrid

Is there a jqGrid method that will skip the next line / previous line. I tried to programmatically click on the button itself using jQuery, but haven't had time yet

+5
source share
2 answers

To go to page 123:

grid = $("#grid");
grid.setGridParam({
    page: 123
});
grid.trigger("reloadGrid");

NB: the grid behaves strangely if you go to a page for which there is no data.

+7
source

You can use $("#next").click();to launch the next page.

-1
source

All Articles