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

Root Node suppression/filter?

1 Answer 86 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 12 Dec 2014, 10:38 PM
Hello, I'm setting up a windows explorer tree view and when it displays, I get a header node then C: then Folder then File.    How can I suppress the Header and drive letter so the first node starts with a sub-folder?  I can't find an event to filter as it's creating the node structure.

attached in yellow are the two nodes I would like to remove on initialization of the control.

thanks.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 15 Dec 2014, 01:14 PM
Hi Jim,

If you don't want those nodes I recommend you to remove them from your collection before pass it to the RadTreeView's ItemsSource. Basically, you can get the HDBach node and wrap in a collection, then pass it to the ItemsSource. This way the empty node and the drive letter node will not be presented in the tree.

Please let me know if this works in your case.

Regards,
Martin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Jim
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or