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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Treeview find the same state

Thread ID:





145498 Jun 25,2019 06:12 PM UTC Jun 26,2019 11:11 AM UTC JavaScript - EJ 2 1
Tags: TreeView
Asked On June 25, 2019 06:12 PM UTC


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

Christopher Issac Sunder K [Syncfusion]
Replied On 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. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon