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

TreviewNodeAdv with Checkbox

Thread ID:

Created:

Updated:

Platform:

Replies:

74392 Jun 10,2008 05:25 PM UTC Jun 17,2008 01:06 PM UTC WinForms 2
loading
Tags: Tools
Administrator [Syncfusion]
Asked On June 10, 2008 05:25 PM UTC

I have a disabled node, that contains a checkbox, the checkbox is grey and disabled, that is perfect. This node has child nodes that are not disabled.

My problem is that the plus/minus sign are disabled as well. Only the doubleclick on node will expand it.
So is there a way to make only the checkbox disabled?

I'm using Essential 5.2

Thanks


Administrator [Syncfusion]
Replied On June 16, 2008 12:25 PM UTC

Hi Patrick,

Thank you for using Syncfusion products.

Expand and collapse the parent node when it is disabled

You can expand and collapse the parent node which is disabled as follows.

[C#]

node = this.treeViewAdv1.Nodes[0];
if ( node.Enabled == false)
{
if(node.Expanded==false)
this.treeViewAdv1.Nodes[0].Expanded = !this.treeViewAdv1.Nodes[0].Expanded;
}

Please refer the below sample and let me know if this helps you.

http://websamples.syncfusion.com/samples/Tools.Windows/F74392_1/main.htm

Regards,
Jaya




Administrator [Syncfusion]
Replied On June 17, 2008 01:06 PM UTC

Thanks, but you should specify that we should use one of the mouse click event and get the selected node by using something like this:
TreeViewAdv.GetNodeAtPoint(e.Location)
And it works.




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

;