Root Node suppression/filter?

2 posts, 0 answers
  1. Jim
    Jim avatar
    2 posts
    Member since:
    Nov 2014

    Posted 12 Dec 2014 Link to this post

    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.
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 15 Dec 2014 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top