Skip to content

Default to last page on page load

Get the last page number with the following

$("#orders").getGridParam('lastpage');

To default to the last page on page load after a half second delay (to ensure grid is loaded first)

setTimeout(function(e){
      //Set the page to the last page
    $("#orders").trigger("reloadGrid",[{page:$("#orders").getGridParam('lastpage')}]);
    }, 500);

Feedback and Knowledge Base