Tree View Multiple node selection

Hi
I am using Syncfusion Essential Studio latest version, 5.1. I am using Tree view control, now i want to expand multiple nodes at a time, If users selects a node it should expand, now if user selects another node, That should expand and the first node too should remain exopanded. How to achieve this.

Thanks.

1 Reply

MU Murugan Syncfusion Team May 25, 2007 06:15 PM UTC

Hi Abhijeet,

Multiple nodes could be expanded, when more than one node is selected, by using the Expand() method of the TreeNodeAdv.

[Code]
private void treeViewAdv1_BeforeSelect(object sender, Syncfusion.Windows.Forms.Tools.TreeViewAdvCancelableSelectionEventArgs args)
{
foreach (TreeNodeAdv node in args.SelectedNodes)
{
node.Expand();
}
}

[Sample]
http://websamples.syncfusion.com/samples/Tools.Windows/F61455/Main.htm

Please refer to this and let me know if it meets your requirements.

Thank you for your interest in Syncfusion products.

Regards,
Murugan P.S

Loader.
Up arrow icon