EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: amarminhas on December 10, 2013, 02:56:08 AM



Title: easy ui tabs and and datagrid
Post by: amarminhas on December 10, 2013, 02:56:08 AM
Hi,

I'm using easyui framework in a project, and I need

1. tabs to be able to be able to close and sort.
I tried to use the jQuery sortable http://jqueryui.com/sortable/

It works, but seems when I click on the reoredered tabs, they reference back to their original index values and highlight the wrong one. Is there some way to avoid this behaviour?

2. client-side pagination and filtering for the datagrid, I have some json data, and tried to combine

"Client Side Pagination" and "DataGrid Filter Row" at http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=

but it loses pagination then, any snippet I can refer to do client-side pagiation with filtering.

Thanks,


Title: Re: easy ui tabs and and datagrid
Post by: stworthy on December 10, 2013, 07:07:28 PM
The 'filter' extension of datagrid with client side pagination is available now. Please download it from http://www.jeasyui.com/extension/datagrid_filter.php.
Code:
$('#dg').datagrid({
  pagination:true,
  remoteFilter:false,
  //...
}).datagrid('enableFilter').datagrid('loadData', ...);