Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by garuda on Nov 25, 2008 01:42
open dhtmlx forum
how to save the opened nodes in dtree?

1) How to save the opened nodes in the tree in the XML and reload them again when I refresh it or whenever I open the tree?
2) Can I load any single XML element to the tree?
Answer posted by Support on Nov 25, 2008 02:45
a) tree supports ( pro version ) 
   tree.saveOpenStates()
and 
   tree.loadOpenStates()
commands , which allow to save|load data in|from cookie.

b) while xml correctly formed - it may contain info about any subset of tree's elements, which will be added to existing tree after such xml loading