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

TreeViewAdv - how to preselect multiple nodes

The control supports multiple selection but there does not appear to be a programatic way to set the selected state on more than a single node. Setting the SelectedNodes property with an array of nodes "to be selected" causes very odd behavior. Ther must be some other, correct, way to do this. Any hints anyone?

1 Reply

RP Ramesh Praveen Syncfusion Team July 11, 2003 10:40 AM UTC

To select nodes from code you should do this: TreeVireAdv.SelectedNodes.AddRange(some nodes); In order for this to work the TreeViewAdv.MultipleNodeSelection must be set to true. The results might not be visible if the Tree hasn`t got focus. To fix this you should set the HideSelection property to false. Regards, Praveen

Loader.
Live Chat Icon For mobile
Up arrow icon