EasyUI Forum

General Category => Bug Report => Topic started by: Stefan B. on August 04, 2014, 04:57:53 AM



Title: easyui 1.4 - Bug with Extension Editable DataGrid and DataGrid FilterRow (fixed)
Post by: Stefan B. on August 04, 2014, 04:57:53 AM
With EasyUi 1.4 the newest version's of Extension "Editable DataGrid" and "DataGrid Filter Row" not working when adding a row with the method "addRow".
If I use an older version of the "DataGrid Filter Row" the row can add!

The new row is shown for a second on the datagrid and then removed automaticly when using method "addRow"

Update: This is also not working with EasyUi 1.3.6!


Title: Re: easyui 1.4 - Bug with Extension Editable DataGrid and DataGrid Filter Row
Post by: stworthy on August 04, 2014, 08:49:05 AM
Please download the newest 'datagrid-filter.js' file from http://www.jeasyui.com/extension/datagrid_filter.php. If you are using 'edatagrid' plugin with 'datagrid filter' functionality, please declare the 'idField' property for the datagrid.
Code:
$('#dg').edatagrid({
  idField: ...,
  //...
});
$('#dg').edatagrid('enableFilter',...);


Title: Re: easyui 1.4 - Bug with Extension Editable DataGrid and DataGrid Filter Row
Post by: Stefan B. on August 04, 2014, 11:58:42 PM
This fix is not working. The same problem.

I saw that when I click addRow a new empty row is added to the datagrid for a short time.
But then also the data is fetched from the remote server by the given url.

In the last versions of the filter extension this was not so!


Title: Re: easyui 1.4 - Bug with Extension Editable DataGrid and DataGrid Filter Row
Post by: stworthy on August 05, 2014, 12:29:23 AM
Please refer to this example http://jsfiddle.net/8v2G8/


Title: Re: easyui 1.4 - Bug with Extension Editable DataGrid and DataGrid Filter Row
Post by: Stefan B. on August 05, 2014, 07:04:03 AM
Please refer to this example http://jsfiddle.net/8v2G8/
OK the excample works, but we load the data from remote server with post and href attribute.
Then it is not working!

Can you also try to work with remote data? It looks like not the same. After addRow the remote data loading is triggerd again, and then the new row lost.


Title: Re: easyui 1.4 - Bug with Extension Editable DataGrid and DataGrid Filter Row
Post by: stworthy on August 06, 2014, 01:46:41 AM
Please try to use the updated 'datagrid-filter.js' file, it can be downloaded from http://www.jeasyui.com/extension/datagrid_filter.php


Title: Re: easyui 1.4 - Bug with Extension Editable DataGrid and DataGrid FilterRow (fixed)
Post by: Stefan B. on August 11, 2014, 06:34:09 AM
Yes now it is working.