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. Image for the cookie policy date
close icon

TreviewNodeAdv with Checkbox

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


2 Replies

AD Administrator Syncfusion Team 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





AD Administrator Syncfusion Team 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.




Loader.
Live Chat Icon For mobile
Up arrow icon