EasyUI Forum

General Category => General Discussion => Topic started by: catpaw on February 09, 2017, 11:30:52 AM



Title: [SOLVED] datagrid - pagination show only total rows
Post by: catpaw on February 09, 2017, 11:30:52 AM
hello all,

need the same as this post http://www.jeasyui.com/forum/index.php?topic=2204.msg4894#msg4894

need the pagination only say Displaying {from} to {to} of {total} ítems

but in datagrid

thank you


Title: Re: datagrid - pagination show only total rows
Post by: stworthy on February 09, 2017, 05:45:35 PM
Get the pager object and then set the 'layout' property to empty, the pagination tools will not display again.
Code:
$('#dg').datagrid({
  pagination:true
});
var pager = $('#dg').datagrid('getPager');
pager.pagination({
  layout:[]
})


Title: Re: datagrid - pagination show only total rows
Post by: catpaw on February 10, 2017, 10:02:26 AM
thanks as always stworthy