1.把jqgrid的pager移到顶部
$('#grid1).jqGrid({
...
pager: $('#pager1'),
viewrecords: true,
toppager:true,
...});
$('#grid1').jqGrid('navGrid',"#pager1", {edit:false,add:false,del:false,search:false,refresh:false,
cloneToTop:true});
//Add a custom button on the top-pager
$('#grid1).jqGrid('navGrid',
'#grid1_toppager_left')
.navButtonAdd(
'#grid1_toppager_left',{
caption:"Top Button",
buttonicon:"ui-icon-lightbulb",
onClickButton: function(){
......
}
});
//Hide the bottom pager
$('#pager1').hide();