EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Jeffrey AnnSheila on August 31, 2016, 01:12:06 AM



Title: how to add some customized buttons to an existing pagination-bar of a datagrid
Post by: Jeffrey AnnSheila on August 31, 2016, 01:12:06 AM
Hi, my question is how to add some customized buttons to an existing pagination-bar of a datagrid, like a print button. My datagrid is with sever side pagination.
when i run the code  "$('#dg').datagrid('getPager');" a error always appears :TypeError: $.data(...) is undefined : return $.data(jq[0],"datagrid").panel.children("div.datagrid-pager");


Title: Re: how to add some customized buttons to an existing pagination-bar of a datagrid
Post by: jarry on August 31, 2016, 03:56:33 AM
Please look at this example http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=Custom%20DataGrid%20Pager