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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Treeviewadv

Thread ID:

Created:

Updated:

Platform:

Replies:

20110 Oct 11,2004 05:44 AM UTC Oct 11,2004 05:49 PM UTC WinForms 1
loading
Tags: Tools
Petrus
Asked On October 11, 2004 05:44 AM UTC

Hi, I am trying to find a way of finding the previously checked node, so that I can uncheck it. To do this, I am trying to store the path of the checked node in a variable, and when another node is checked then I can refer back to the previously checked node with the path. The problem is that when you check a node it does not select the node. I have only found a way to refer to the selected node, but not a checked node. Thanks in advance (; Petrus

Administrator [Syncfusion]
Replied On October 11, 2004 05:49 PM UTC

Hi Petrus, You could use the TreeViewAdv''s AfterCheck and BeforeCheck events for this purpose as shown below : // prevCheck denotes the previously checked node // currentCheck denotes the currently checked node TreeNodeAdv prevCheck, currentCheck; private void treeViewAdv1_BeforeCheck(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvBeforeCheckEventArgs e) { if (currentCheck!=null) { prevCheck = currentCheck; Trace.WriteLine("previous checked node : " + prevCheck.Text); } } private void treeViewAdv1_AfterCheck(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvEventArgs e) { currentCheck = e.Node; } Please refer to the complete sample attached that illustrates this, and let me know if it meets your requirements. We appreciate your interest in 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.

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

;