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




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) )