Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Don on Sep 29, 2008 12:37
open dhtmlx forum
Hide Tree Node

Hello.

Is it possible to hide a node on the tree? I would like only certain items to be visible, but I want to be able to bring them back if needed.

Thanks in advance.
Answer posted by Stanislav on Sep 29, 2008 15:21
Unfortunately it not possible ( to be fully correct , it not possible to be done through API, it possible to access HTML elements related to nodes and hide them, but it doesn't sounds as good solution for me )
You may look at TreeGrid component, its filtering ability allows to hide|show sets of items 
Answer posted by Stanislav on Sep 29, 2008 15:23
One more solution for dhtmlxtree is using two XML description and reset the tree to necessary one by 
    tree.deleteChildItems(0);
    tree.loadXMLString(new_item_set);
For not big trees, it will work pretty fast.