Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jqgrid default to last page
  2. $(function(){
  3.   $("#list").jqGrid({
  4.     url:'visitors.php',
  5.     datatype: 'xml',
  6.     mtype: 'GET',
  7.     colNames:['timestamp', 'user','last_visit','last_purchase','purchase_amount'],
  8.     colModel : gridColModel,
  9.     pager: '#pager',
  10.     rowNum:20,
  11.     rowList:[10,20,30],
  12.     sortname: 'timestamp',
  13.     sortorder: 'asc',
  14.     viewrecords: true,
  15.     gridview: true,
  16.     autowidth: true,
  17.     editurl: 'edit.php',
  18.   })
  19.   .navGrid('#pager',{edit:false,add:false,del:false,search:false})
  20. });