<script
type="text/javascript">
$(function(){
var
pager = $(‘#dg‘).datagrid(‘getPager‘); // get the pager of
datagrid
pager.pagination({
buttons:[{
iconCls:‘icon-search‘,
handler:function(){
alert(‘search‘);
}
},{
iconCls:‘icon-add‘,
handler:function(){
alert(‘add‘);
}
},{
iconCls:‘icon-edit‘,
handler:function(){
alert(‘edit‘);
}
}]
});
})
</script>
append some buttons to the standard datagrid pager bar,布布扣,bubuko.com