EasyUI Forum
May 16, 2024, 03:07:34 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 lazy loading doesnt work with filters  (Read 10734 times)
A-K
Full Member
***
Posts: 122


View Profile WWW
« 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/
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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 22, 2015, 07:10:14 PM »

Please 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 #2 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:

After typing "D" in the filter all the data is gone:

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") :

Then remove filter, and "D" is duplicated:
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: November 23, 2015, 06:21:18 AM »

Please refer to http://jsfiddle.net/3L4ej4dx/180/
Logged
A-K
Full Member
***
Posts: 122


View Profile WWW
« Reply #4 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:


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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


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