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

How to save and load the TreeNodeAdv in a collapsed or an expanded state?

The TreeViewAdv does not have support for saving its TreeNodeAdvCollection in an expanded or a collapsed state. This requirement can be achieved by the following steps.

  1. Save the Expanded or Collapsed state of each of its TreeNodeAdvCollection to a Dictionary.
  2. Reload the saved state based on user requirement.

The following code example demonstrates the same.

C#

VB


Figure 1: Tree Node state of the TreeViewAdv can be saved or loaded by choosing the Save Tree State and Load Tree State

Sample Links

C#: http://www.syncfusion.com/downloads/support/directtrac/142201/ze/TreeNodeAdvState-1931243813

VB: http://www.syncfusion.com/downloads/support/directtrac/142201/ze/TreeNodeAdvState_VB-2113180951

Article ID: Published Date: Last Revised Date: Platform: Control:
5364 08/18/2015 08/18/2015 Windows Forms TreeViewAdv
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.