EasyUI Forum
May 14, 2021, 01:02:54 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Showing pagination bar  (Read 212 times)
sectioni
Jr. Member
**
Posts: 63


View Profile
« on: February 04, 2021, 02:42:45 AM »

Hi

If I created a datagrid with pagination:false, and then I want to enable it, how do I do that?
I tried:

$('#tbl-data-eventLog_1024').datagrid('options').pagination = true;
$('#tbl-data-eventLog_1024').datagrid('resize');

Logged
jarry
Administrator
Hero Member
*****
Posts: 1978


View Profile Email
« Reply #1 on: February 05, 2021, 01:42:48 AM »

Please use this code instead.
Code:
$('#tbl-data-eventLog_1024').datagrid({
  pagination: true
});
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!