Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by sbowers on May 19, 2009 13:09
open dhtmlx forum
Treegrid dynamic loading and filtering issue

Using Tree Grid with dhtmlxSuite_2008Rel3_pro_81009:

Using dynamic loading of children nodes with kidsXMLFile with a JSP file, as well as loadXML with same JSP file to load top level nodes.

Problem is when I filter, it will only find leaf nodes in nodes that have been previously expanded/loaded.

Is there a method which can be used to dynamically load and filter the unloaded children nodes (which have not yet been expanded) when a user enters a filter in the header for the treegrid.

Thanks.
Answer posted by Support on May 20, 2009 04:28
>>Problem is when I filter, it will only find leaf nodes in nodes that have been previously expanded/loaded.
TreeGrid filters all data which available on client side , it can't access data for not loaded branches, so they ignored during filtering. 

>>Is there a method which can be used to dynamically load and filter the unloaded children nodes
There is no such method. But if your TreeGrid is not very big - you can change the way of loading and load all data at once. ( In case of using smart-rendering mode in same time - it will not decrease performance ) 
In such case all data will be available on client side and ready to filtering.