expand specific item

3 posts, 0 answers
  1. iramz
    iramz avatar
    23 posts
    Member since:
    Jan 2010

    Posted 22 Feb 2010 Link to this post

    okay so i have a populated treeview. everything is collapsed by default. i know a specific item in the tree and i want it to be expanded / visible. how do i do it?
  2. iramz
    iramz avatar
    23 posts
    Member since:
    Jan 2010

    Posted 23 Feb 2010 Link to this post

    note that, the container is not yet generated. i sort of like a default expanded path. 

    + item1
    + item2
    - item3
        - item3.1
            - default expanded item. 

  3. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 25 Feb 2010 Link to this post

    Hello iramz,

    For this purpose you can use the GetItemByPath and ExpandItemByPath methods.

    More information can be found here:

    http://www.telerik.com/help/silverlight/radtreeview-how-to-get-item-by-path.html

    and in the attached example.

    Regards,
    Miroslav
    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