EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: A-K on November 22, 2015, 04:34:36 PM



Title: Treegrid lazy loading doesnt work with filters
Post by: A-K on November 22, 2015, 04:34:36 PM
Hey,

When using treegrid with lazy loading, the filters do not work.
They remove all the data.

Example: http://jsfiddle.net/3L4ej4dx/177/ (http://jsfiddle.net/3L4ej4dx/177/)
Try to open the node named "B", then try to use the filter.
It wont work and the data is gone until you will use refresh.

Thanks.


Title: Re: Treegrid lazy loading doesnt work with filters
Post by: stworthy on November 22, 2015, 07:10:14 PM
Please download the 'datagrid-filter.js' file from http://www.jeasyui.com/extension/datagrid_filter.php


Title: Re: Treegrid lazy loading doesnt work with filters
Post by: A-K on November 23, 2015, 03:07:52 AM
Hey,

Sorry it still doesnt work for me, also I found another problem.

Here are screenshots of what is going on,

The child named "D" is lazy loaded: (http://s10.postimg.org/d32hb81p1/image.png) (http://postimg.org/image/d32hb81p1/)

After typing "D" in the filter all the data is gone: (http://s10.postimg.org/6yayxw9lh/image.png) (http://postimg.org/image/6yayxw9lh/)

Also,
Typing "B" in the filter, then opening and closing a few times the node "B" (No child is loaded because he has only
one child named "D" and the filter is "B") : (http://s10.postimg.org/vg32lsc5x/image.png) (http://postimg.org/image/vg32lsc5x/)

Then remove filter, and "D" is duplicated: (http://s10.postimg.org/pt6pob9n9/image.png) (http://postimg.org/image/pt6pob9n9/)


Title: Re: Treegrid lazy loading doesnt work with filters
Post by: stworthy on November 23, 2015, 06:21:18 AM
Please refer to http://jsfiddle.net/3L4ej4dx/180/


Title: Re: Treegrid lazy loading doesnt work with filters
Post by: A-K on November 24, 2015, 03:44:19 AM
Thanks, but there is still one problem,
because the node is lazy loaded, the filter did not work on him.

Example: (http://s16.postimg.org/hqb4sg8b9/image.png) (http://postimage.org/)
 (http://postimage.org/index.php?lang=french)

I typed the filter "B" and then I opened the node "B", I would want the child to be removed because
he does not fit the filter, but he is shown.


Title: Re: Treegrid lazy loading doesnt work with filters
Post by: stworthy on November 25, 2015, 12:57:31 AM
Please download the updated 'datagrid-filter.js' file from http://www.jeasyui.com/extension/datagrid_filter.php