EasyUI Forum
May 15, 2024, 09:12:24 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: Treegrid with filters, data is duplicated.  (Read 13639 times)
A-K
Full Member
***
Posts: 122


View Profile WWW
« 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/
Just press the reload button and the data will be duplicated.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 01, 2015, 04:06:33 AM »

Please look at http://jsfiddle.net/3L4ej4dx/165/
Logged
A-K
Full Member
***
Posts: 122


View Profile WWW
« Reply #2 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.
Logged
A-K
Full Member
***
Posts: 122


View Profile WWW
« Reply #3 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/
Click the append button and watch the data duplicated.

Please fix this without the need to write "url:ABC" if possible.


Thanks.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #4 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
Logged
A-K
Full Member
***
Posts: 122


View Profile WWW
« Reply #5 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!

Logged
A-K
Full Member
***
Posts: 122


View Profile WWW
« Reply #6 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/

Press append button, then remove button and then append again.

Thanks.
Logged
A-K
Full Member
***
Posts: 122


View Profile WWW
« Reply #7 on: November 09, 2015, 11:07:47 AM »

I just saw you updated the extension and fixed it.
Thanks!
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!