This is a migrated thread and some comments may be shown as answers.

Select a path node

1 Answer 73 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
OD
Top achievements
Rank 1
OD asked on 02 Mar 2011, 02:07 PM
Hey,
i'm using the file explorer sample.
Is there a way to select automaticaly the c:\windows\system32 node and expand it in the treeview ?
I've tried the SelectDirectoryInTreeView function availbale in the project, but without success.
Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 02 Mar 2011, 03:36 PM
Hello Nermond,

Just use a tree parsing algorithm to get to the required node, or just use the FindByTextCommand and just call Expand() on that node.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Telerik WinForms MVP
Tags
Treeview
Asked by
OD
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or