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.

TreeNodeAdv, selecting miltiple nodes programatically

Thread ID:

Created:

Updated:

Platform:

Replies:

18939 Sep 14,2004 07:24 AM Sep 15,2004 09:54 AM Windows Forms 2
loading
Tags: Tools
Peter Erikson
Asked On September 14, 2004 07:24 AM

Hi, Does anyone know if it is possible to select multible nodes in a TreeViewAdv contoll programatically? /Peter

Sean Greer
Replied On September 14, 2004 02:19 PM

See this forum thread: http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=18522

Administrator [Syncfusion]
Replied On September 15, 2004 09:54 AM

Hi, Sean, Thanks for the update. We appreciate your continued support for Syncfusion. Peter, You would have to derive from the TreeViewAdv and use the protected SetSelectedNode method for this purpose as shown in the code below : public class CustomTreeViewAdv : TreeViewAdv { public CustomTreeViewAdv () : base() {} public void AddSelectedNode(TreeNodeAdv node) { ArrayList arr = new ArrayList(); arr.Add(node); this.SetSelectedNode (arr, null, TreeViewAdvAction.Unknown, false, true); } } // Invoke the AddSelectedNode method to add nodes to the SelectedNodes collection this.treeViewAdv1.AddSelectedNode(node); Please refer to the sample attached that illustrates this. Let me know if this helps. Thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

CONFIRMATION

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.

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.

;