EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on January 22, 2014, 06:23:43 AM



Title: CRUD DataGrid + DataGrid Filter Row
Post by: rezzonico on January 22, 2014, 06:23:43 AM
Hi all,

I am new with jeasyui.

I have downloaded (and installed) "CRUD DataGrid".
All works perfectly !
Here you can try my installation:
http://195.144.40.170/jeasyui/index1.html

As a second step I have added "DataGrid Filter Row".
In order to enable "DataGrid Filter Row", as described in the documentation, I have added the following 2  lines:
<script type="text/javascript" src="datagrid-filter.js"></script>
dg.edatagrid('enableFilter');

... and modified the following line:
dg = $('#dg').edatagrid({
Here you can try "RUD DataGrid + DataGrid Filter Row"
http://195.144.40.170/jeasyui/index2.html

As you can verify the last link has problems.
If for example you add a new record and then hit the "reload" button, the new record disappears from the list.
If you delete a record and then hit the "reload" button, the deleted record is still in the list.

Any help in order to solve this problem is appreciated.

Regards.
Miche


Title: Re: CRUD DataGrid + DataGrid Filter Row
Post by: stworthy on January 22, 2014, 08:09:20 PM
Please try applying remote filtering.
Code:
$('#dg').edatagrid({
  remoteFilter:true
});


Title: Re: CRUD DataGrid + DataGrid Filter Row
Post by: rezzonico on January 23, 2014, 12:49:15 AM
Hi stworthy,

it works perfectly !!
Thanks a lot for your help !

Miche