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

Search (not filter) in TreeListView

2 Answers 60 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Manohar
Top achievements
Rank 1
Manohar asked on 17 Feb 2011, 11:48 PM
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 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 23 Feb 2011, 10:52 AM
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
0
tungnt185
Top achievements
Rank 2
answered on 05 Jan 2013, 06:43 AM
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
Tags
TreeListView
Asked by
Manohar
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
tungnt185
Top achievements
Rank 2
Share this question
or