Hide root node

2 posts, 0 answers
  1. testrash
    testrash avatar
    1 posts
    Member since:
    Mar 2011

    Posted 01 Apr 2011 Link to this post

    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.
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 05 Apr 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top