Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 07, 2007 11:19
open dhtmlx forum
Is there an equivalent of clearAll() in dhtmlXtree?  Basically, under certain conditions I want t...

Is there an equivalent of clearAll() in dhtmlXtree? 

Basically, under certain conditions I want to invoke loadXML again to get latest state from server. But prior to that I want to clear the old tree.
Answer posted on Mar 07, 2007 11:19

There is a deleteChildItems method. Try to use next approach:

            tree.deleteChildItems(0);

It deletes all items in tree, and all related to them data (basically the same as clearAll), and you can load new data from XML after that.
Answer posted by Andrei (Support) on Dec 09, 2014 23:35

Having solved the problem mentioned above, you may also look through the possible related problems with javascript library mobile and open source javascript calendar.