We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Treeview find the same state


With treeview is it possible to find the same unfolded opening state of items when arriving on the tree?
Like a cache of the state.
Thank you

1 Reply

CI Christopher Issac Sunder K Syncfusion Team June 26, 2019 11:11 AM UTC

Hello Chris, 

Greetings from Syncfusion support. 

Yes, we can persist the state of the TreeView using enablePersistance property. This property enables or disables persisting TreeView state between page reloads. If enabled, following APIs will persist. 
  1. selectedNodes - Represents the nodes that are selected in the TreeView component.
  2. checkedNodes - Represents the nodes that are checked in the TreeView component.
  3. expandedNodes - Represents the nodes that are expanded in the TreeView component.

The default value of the property is false. Here is the API link for your reference. 

Please get back to us if you require any further assistance. 


Live Chat Icon For mobile
Up arrow icon