Title: Treegrid with filters, data is duplicated. Post by: A-K on November 01, 2015, 01:50:29 AM Hey,
I am using treegrid with filters extension, and when I reload the treegrid the data is duplicated. When I remove the filters everything is working fine. Here is the exmple: http://jsfiddle.net/3L4ej4dx/158/ (http://jsfiddle.net/3L4ej4dx/158/) Just press the reload button and the data will be duplicated. Title: Re: Treegrid with filters, data is duplicated. Post by: stworthy on November 01, 2015, 04:06:33 AM Please look at http://jsfiddle.net/3L4ej4dx/165/
Title: Re: Treegrid with filters, data is duplicated. Post by: A-K on November 01, 2015, 06:45:55 AM Thanks for the help, but why do I need to add this useless code:
Code: url:'abc', Can there be a more reasonable fix for this? adding a useless url is not looking like a good fix for a bug.. Thanks. Title: Re: Treegrid with filters, data is duplicated. Post by: A-K on November 05, 2015, 12:20:14 PM There are more problems that the URL trick didn't help, like the method 'append', it also duplicates the data...
Example: http://jsfiddle.net/3L4ej4dx/171/ (http://jsfiddle.net/3L4ej4dx/171/) Click the append button and watch the data duplicated. Please fix this without the need to write "url:ABC" if possible. Thanks. Title: Re: Treegrid with filters, data is duplicated. Post by: stworthy on November 06, 2015, 01:12:39 AM Please try to download the 'datagrid-filter.js' file from http://www.jeasyui.com/extension/datagrid_filter.php
Title: Re: Treegrid with filters, data is duplicated. Post by: A-K on November 06, 2015, 02:43:07 AM Remove datagrid-filter.js, it'll be okay. Please look at the title.. the whole point is using filters in treegrid. Please try to download the 'datagrid-filter.js' file from http://www.jeasyui.com/extension/datagrid_filter.php The new version works great, thanks! It also removed the need to write "url:ABC". Great work! Title: Re: Treegrid with filters, data is duplicated. Post by: A-K on November 09, 2015, 05:23:32 AM Hey,
Another problem in the filter extension for treegrid. when you append a row, then you remove it and then append again, the removed row is now shown again in the treegrid. Example: http://jsfiddle.net/3L4ej4dx/174/ (http://jsfiddle.net/3L4ej4dx/174/) Press append button, then remove button and then append again. Thanks. Title: Re: Treegrid with filters, data is duplicated. Post by: A-K on November 09, 2015, 11:07:47 AM I just saw you updated the extension and fixed it.
Thanks! |