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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: WinForms |
Control: TreeViewAdv |
Published Date: August 18, 2015 |
Last Revised Date: August 18, 2015

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

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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