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.
Up arrow icon