Q:

Move between page in jqgrid

I using jqgrid last version.I use bindKeys method to have keyboard support and it is possible to select a row with Up and Down keys .Now i want use "page up/page down" for navigate between  pages(next/prev) how to do it?
  jQuery("#List1").jqGrid('bindKeys', {
});

A:

Please check this code:
    $(grid).bind('keydown', function (e) {
    var totalPages = $("#sp_1_List1_toppager").text();
    var currentPage = grid.getGridParam('page');
    //pagedown
    if (e.keyCode == 34 && currentPage > 1) {
        grid.jqGrid('setGridParam', { "page": currentPage - 1 }).trigger("reloadGrid");
    }
    //pageup
    else if (e.keyCode == 33 && totalPages != currentPage) {
        grid.jqGrid('setGridParam', { "page": page + 1 }).trigger("reloadGrid");
    }
});

