Hi,
This problem could be solved by using recursive function to find out the required node. After getting the resultant node use TreeviewAdv.CollapseAll() method to collapse tree structure.Then make the resultant node as selected node by assigning treeViewAdv.SelectedNode = node.
public TreeNodeAdv FindNodeByText(Syncfusion.Windows.Forms.Tools.TreeNodeAdv node , string text)
{
if (node != null)
{
if (node.Text.ToUpper() == text.ToUpper())
{
return node;
}
else
{
node = FindNodeByText(GetNextNode(node), text);
}
}
return node;
}
The attached sample demonstrates this method.Please go through that and let me know,if you need more assistance.
Thanks for your interest on Syncfusion products.
Regards,
Murugan PS
TreeViewSearch.zip