Hi,
Sean,
Thanks for the update. We appreciate your continued support for Syncfusion.
Peter,
You would have to derive from the TreeViewAdv and use the protected SetSelectedNode method for this purpose as shown in the code below :
public class CustomTreeViewAdv : TreeViewAdv
{
public CustomTreeViewAdv () : base() {}
public void AddSelectedNode(TreeNodeAdv node)
{
ArrayList arr = new ArrayList();
arr.Add(node);
this.SetSelectedNode (arr, null, TreeViewAdvAction.Unknown, false, true);
}
}
// Invoke the AddSelectedNode method to add nodes to the SelectedNodes collection
this.treeViewAdv1.AddSelectedNode(node);
Please refer to the
sample attached that illustrates this. Let me know if this helps. Thanks for choosing Syncfusion products.
Regards,
Guru Patwal
Syncfusion, Inc.