Searching the nodes for a string

4 posts, 0 answers
  1. Jim Bassett
    Jim Bassett avatar
    1 posts
    Member since:
    Aug 2009

    Posted 03 Nov 2009 Link to this post

    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.
  2. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 06 Nov 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. thomas kuang
    thomas kuang avatar
    4 posts
    Member since:
    May 2010

    Posted 02 Aug 2010 Link to this post

    hello!Do you have sample that download.I have this problem also.
         thanks my friend.
  5. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 05 Aug 2010 Link to this post

    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
Back to Top