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

TreeViewAdv Selection of a node

Hi,
When i check the checkbox, its corresponding node is not getting highlighted. Similarly, when i select a node, its corresponding checkbox is not getting checked. Can anyone let me know the solution for this...

1 Reply

MU Murugan Syncfusion Team April 4, 2007 08:15 PM UTC

Hi Annie,

This could be easily done by handling the AfterSelect mehod of the TreeViewAdv control. Please refer the code snippet below

private void treeViewAdv1_AfterSelect(object sender, EventArgs e)
{

if (this.treeViewAdv1.SelectedNode.CheckBox != null )
{
this.treeViewAdv1.SelectedNode.Checked = true;

}

}

and let me know if it helps you.

Thanks for using Syncfusion products.

Regards,
Murugan P.S

Loader.
Live Chat Icon For mobile
Up arrow icon