EasyUI Forum
April 26, 2024, 04:30:53 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] datagrid - pagination show only total rows  (Read 8695 times)
catpaw
Jr. Member
**
Posts: 85


View Profile Email
« 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
« Last Edit: February 10, 2017, 10:02:58 AM by catpaw » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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:[]
})
Logged
catpaw
Jr. Member
**
Posts: 85


View Profile Email
« Reply #2 on: February 10, 2017, 10:02:26 AM »

thanks as always stworthy
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!