$('#grid1).jqGrid({
...
pager: $('#pager1'),
viewrecords: true,
toppager:true,
...});
$('#grid1').jqGrid('navGrid',"#pager1", {edit:false,add:false,del:false,search:false,refresh:false,cloneToTop:true}); //You can disable/enable any jqGird default buttons you like
//Add a custom button on the top-pager
$('#grid1).jqGrid('navGrid','#grid1_toppager_left')
.navButtonAdd('#grid1_toppager_left',{
caption:"click me",
buttonicon:"ui-icon-lightbulb",
id: "lightbulb1",
onClickButton: function(){
alert('clicked');
}
});
//Optional, Hide the bottom pager
$('#pager1').hide();
No comments:
Post a Comment