Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Bill Jindrich on Jul 15, 2008 20:55
open dhtmlx forum
dhtmlXtree: can state be saved for multiple tree?

If we have multiple trees on a page, or perhaps several different web sites with different trees on them, how with the state management function (using cookies)? Will it retain the state of each tree, or only the most recently saved tree? Any way to support saving off & reloading the states of multiple trees?
Answer posted by Support on Jul 16, 2008 02:34
All cookie related operation has optional parameters , first of which is name of cookie , used to storing tree state.
By using unique name you can mantain multiple tree states at same time.

tree1.saveOpenStates("tree1")
...
tree2.saveOpenStates("tree2")