Navigating Items that are not yet expanded

3 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    3 posts
    Member since:
    May 2013

    Posted 29 May 2013 Link to this post


    I have a RadTreeView Control which i populate with RadTreeViewItems via the ItemSource Property.
    Now i have to implement a Search functionality, that should work on all Items, starting from the current selected one and even on not expand items.

    RadTreeViewItem offers NextItem, PreviousItem, Parent and so on, but those are only available when the tree is expanded (which means item is prepared as far as i understood)

    It's possible to navigate down to the first occurence of a matching item, but how can i search further in the tree on the next sibling or so when they are not expanded?

    I think it must be possible to search for an item and bring it into view from a not expanded tree...

    Any help would be reeally appreciated...
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 29 May 2013 Link to this post

    Hi Jonathan,

    When working with a data-bound RadTreeView, it's best to implement the search functionality on the data collection that is displayed in the RadTreeView. We've uploaded a sample solution demonstrating how to implement a filter, search and sort operations on the data represented by a RadTreeView in GitHub.

    Furthermore, if your scenario requires you to bring virtualized items into view, I'd recommend using the BringPathIntoView() method as demonstrated in this tutorial.

    Tina Stancheva

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
  4. Jonathan
    Jonathan avatar
    3 posts
    Member since:
    May 2013

    Posted 30 May 2013 Link to this post

    Thanks for the answer.

    I was hoping that's not necessary, but I can live with it.
    thanks, your answer and the links helped me.
Back to Top