EasyUI Forum
May 08, 2024, 09:31:12 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Bug in DataGrid Filter Row extension and multi datagrid  (Read 8645 times)
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« on: August 12, 2014, 02:34:53 AM »

We found a bug. We use more datagrids with the actually "DataGrid Filter Row" extension to filter datasets on each datagrid.

On each datagrid some fields have the same field names.

When we filter the first datagrid field where the field name is the same on other datagrids, the filter works fine.

But then go to the next datagrid, we see that the datagrid filter textbox (with the same field name) the filtertext has already set with the wilter from the other page (datagrid) in the textbox! This should not be!

It looks like it is only, when we write the first filter text in the box and the filter is handled.

This Problem only occures with the newest version of the (DataGrid Filter Row).
See the following attachments  Undecided

Other Question: Why the extensions has no versions?  Huh



« Last Edit: August 12, 2014, 02:43:36 AM by Stefan B. » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: August 12, 2014, 05:40:48 AM »

Try to initialize each datagrid with different 'filterRules' property value to solve this issue.
Code:
$('#dg1').datagrid({filterRules:[]}).datagrid('enableFilter');
$('#dg2').datagrid({filterRules:[]}).datagrid('enableFilter');
Logged
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« Reply #2 on: August 14, 2014, 04:38:42 AM »

THX this little code block works.

But I think this should be done by the methode 'enableFilter' in the easyui extension  Grin
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!