EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sectioni on February 04, 2021, 02:42:45 AM



Title: Showing pagination bar
Post by: sectioni 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');



Title: Re: Showing pagination bar
Post by: jarry on February 05, 2021, 01:42:48 AM
Please use this code instead.
Code:
$('#tbl-data-eventLog_1024').datagrid({
  pagination: true
});