Since Version 1.3 we can set the
pagePosition on datagrid. This defines the position of the pager bar. When i set
pagePosition='both' the pagination is shown on top and bottom. That's working.
But when I add user defined buttons to the pageination like the following code, the buttons are only on the pagination at the datagrid bottom!
This looks like a bug.
var pager = $('#dg').datagrid('getPager');
pager.pagination({ // get the pager of datagrid
buttons: $('#custommerButtons')
});
<div id="custommerButtons">
<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" ><%=lang.get("tbNew")%></a>
<a href="#" class="easyui-linkbutton" iconCls="icon-save" plain="true" ><%=lang.get("tbSave")%></a>
<a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" ><%=lang.get("tbDelete")%></a>
<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" plain="true"><%=lang.get("tbCancel")%></a>
</div>