Search (not filter) in TreeListView

3 posts, 0 answers
  1. Manohar
    Manohar avatar
    18 posts
    Member since:
    Sep 2010

    Posted 17 Feb 2011 Link to this post

    Hi,
    I am looking for Excel like search capability in TreeListView.
    Unlike Filter, the search will focus on the cell or row where it finds the searched text and also with the ability to continue finding the next occurrence of the same text.

    Is this feature available out of the box?
    If not, what is the best option to build such capability?

    Thanks.
    B.Manohar
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 23 Feb 2011 Link to this post

    Hi Manohar,

     As the feature is not supported out-of-the-box, I would recommend the following approach :

    An external TextBox with handler for the TextChangedEvent. Within the EventHandler you may perform search over the data model ( the ItemsSource of RadTreeListView) . I believe it is easy to find the corresponding item in any collection. Then having the Item , you may call BringIntoView or BringIntoViewAsync methods of RadTreeListView , and then set the current cell of RadTreeListView.

    This is jut a general explanation of the recommended approach. In case you have troubles implementing it , just give me a runnable application with a RadTreeListView bound to some sample data matching your business objects , and I will implement it there for you . ( To be able to attach a project , please open a support ticket ) .

    All the best,
    Pavel Pavlov
    the Telerik team
  3. DevCraft banner
  4. tungnt185
    tungnt185 avatar
    40 posts
    Member since:
    Aug 2009

    Posted 05 Jan 2013 Link to this post

    Hi Pavel,

    Could you provide more detail about this implement or source code.
    I've same scenario as Manohar but I can't find any BringIntoView method as you said.

    Thanks in advance
Back to Top