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

Hide root node

1 Answer 166 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
testrash
Top achievements
Rank 1
testrash asked on 01 Apr 2011, 02:26 PM
Hi,

My data hierarchy has a single root node. It is always single and always the same.
Is it possible just to hide it and show only items starting from the second level?

Testrash.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 05 Apr 2011, 04:27 PM
Hello testrash,

If your RadTreeView is databound, just pass the second level collection of business objects (ViewModels)
as an ItemsSource of the tree.
If the tree is defined declaratively, you have to edit the template of the root RadTreeViewItem and make its HeaderRow have Height and MinHeight set to 0. You can find this approach realized in the attached solution.
 
Best wishes,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
testrash
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or