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

expand specific item

2 Answers 90 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
iramz
Top achievements
Rank 1
iramz asked on 23 Feb 2010, 03:47 AM
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 Answers, 1 is accepted

Sort by
0
iramz
Top achievements
Rank 1
answered on 23 Feb 2010, 11:10 AM
note that, the container is not yet generated. i sort of like a default expanded path. 

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

0
Miroslav
Telerik team
answered on 25 Feb 2010, 03:08 PM
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.
Tags
TreeView
Asked by
iramz
Top achievements
Rank 1
Answers by
iramz
Top achievements
Rank 1
Miroslav
Telerik team
Share this question
or