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

Searching the nodes for a string

3 Answers 75 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jim Bassett
Top achievements
Rank 1
Jim Bassett asked on 03 Nov 2009, 09:16 PM
I have a TreeView control that is bound to a XML source to populate the Tree about 3 nodes deep. Trying to search the Tree for a specific node or nodes containing that string but I can't seem to get an idea how. Has anyone done this using this control or has an idea how to go about doing it.

3 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 06 Nov 2009, 12:22 PM
Hi Jim Bassett,

Please take a look at the following forum discussions:
http://www.telerik.com/community/forums/wpf/treeview/filtering-in-treeview.aspx
http://www.telerik.com/community/forums/wpf/treeview/finding-no-way-to-search-child-node-of-a-radtreeviewitem.aspx
There you can also find an example that shows how to implement a simple filtering functionality in the same way you can create your own search functionality.
I hope that this will be helpful.

Regards,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
thomas kuang
Top achievements
Rank 1
answered on 02 Aug 2010, 10:56 AM
hello!Do you have sample that download.I have this problem also.
     thanks my friend.
0
Hristo
Telerik team
answered on 05 Aug 2010, 10:27 AM
Hi thomas kuang,

Please take a look at the attached example. Although if you are using data binding it is better to perform search on the data and then make changes to the visual state of the tree.

Also you can take a look at the following articles:
http://www.telerik.com/help/silverlight/radtreeview-how-to-get-item-by-path.html
http://www.telerik.com/help/silverlight/radtreeview-how-to-iterate-through-treeviewitems.html


All the best,
Hristo Milyakov
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
Tags
TreeView
Asked by
Jim Bassett
Top achievements
Rank 1
Answers by
Bobi
Telerik team
thomas kuang
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or