EasyUI Forum
May 12, 2024, 04:01:37 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: CRUD DataGrid + DataGrid Filter Row  (Read 7947 times)
rezzonico
Full Member
***
Posts: 183


View Profile
« 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
« Last Edit: January 22, 2014, 06:32:29 AM by rezzonico » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 22, 2014, 08:09:20 PM »

Please try applying remote filtering.
Code:
$('#dg').edatagrid({
  remoteFilter:true
});
Logged
rezzonico
Full Member
***
Posts: 183


View Profile
« Reply #2 on: January 23, 2014, 12:49:15 AM »

Hi stworthy,

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

Miche
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!