Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stefan Riedel-Seifert on Mar 23, 2009 02:10
open dhtmlx forum
Tree - Clear/delete OpenStates

Hi,

are there any methods to clear/reset the openStates for a tree? If i close the application and reopen it, the tree
will be displayed as left in the other session.

Must i delete the client cookie by own methods?

Best regards,
Stefan

Answer posted by Alex (support) on Mar 23, 2009 03:14

Hello,

You can use the following approach to clear the cookie:

tree.setCookie("treeStatex"+name,"");

Where name is the name that you passed into saveOpenStates ( tree.saveOpenStates(name) )