I'm looking for a way to have jqgrid default to the last page of the grid on page load. I want the sort order to stay ascending and the last page of the grid to come up first. I'm using something like this:
$(function(){
$("#list").jqGrid({
url:'visitors.php',
datatype: 'xml',
mtype: 'GET',
colNames:['timestamp', 'user','last_visit','last_purchase','purchase_amount'],
colModel : gridColModel,
pager: '#pager',
rowNum:20,
rowList:[10,20,30],
sortname: 'timestamp',
sortorder: 'asc',
viewrecords: true,
gridview: true,
autowidth: true,
editurl: 'edit.php',
})
.navGrid('#pager',{edit:false,add:false,del:false,search:false})
});