EasyUI Forum

General Category => Bug Report => Topic started by: Stefan B. on August 12, 2014, 02:34:53 AM



Title: Bug in DataGrid Filter Row extension and multi datagrid
Post by: Stefan B. 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  :-\

Other Question: Why the extensions has no versions?  ???





Title: Re: Bug in DataGrid Filter Row extension and multi datagrid
Post by: jarry 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');


Title: Re: Bug in DataGrid Filter Row extension and multi datagrid
Post by: Stefan B. 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  ;D