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

treeViewAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

89306 Aug 21,2009 01:23 PM UTC Aug 24,2009 04:19 AM UTC WinForms 1
loading
Tags: Tools
samuel
Asked On August 21, 2009 01:23 PM UTC

hi

How can i prevent a selection node for the nodes who are enable = false.
thanks

Balavasanth [Syncfusion]
Replied On August 24, 2009 04:19 AM UTC

Hi Samuel,

Thanks for your interests in Syncfusion products.

You can make use of the BeforeSelect event to prevent a node from being selected when setting enabled as False. Kindly make
use of the code snippet for how to set the args value as canceled one.

void treeViewAdv1_BeforeSelect(object sender, Syncfusion.Windows.Forms.Tools.TreeViewAdvCancelableSelectionEventArgs args)
{
if (args.SelectedNodes[0].Enabled == false)
{
args.Cancel = true;
}
}

We are also sending you a simple sample as per your requirement. Kindly download it from the below location.

http://files.syncfusion.com/support/Tools.Windows/7.3.0.20/F89306/main.htm

Please let us know if you have any queries.

Regards,
Bala.

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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;