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

expanded by default

3 Answers 96 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
iramz
Top achievements
Rank 1
iramz asked on 03 May 2010, 10:04 AM
so i populate my radtreeview... but its collapsed. how do i make it expanded all by default. at what event should i call, Expandall. also take note that i populate and repopulate the treeview at any given time. so it should always be expanded all at everytime i change the itemssource.

thank yoU!

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 06 May 2010, 07:02 AM
Hello iramz,

please check this help article:
http://bea.stollnitz.com/blog/?p=54

Kind regards,
Valentin.Stoychev
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.
0
Jay
Top achievements
Rank 1
answered on 21 Aug 2012, 03:22 PM
In Silverlight, styles can be passed implicitly to a control's immediate children by setting the style in its resources.

<telerik:RadTreeView
    <telerik:RadTreeView.Resources>
        <Style TargetType="telerik:RadTreeViewItem">
            <Setter Property="IsExpanded" Value="True"/>
        </Style>
    </telerik:RadTreeView.Resources>
</telerik:RadTreeView>
0
Marcel
Top achievements
Rank 1
answered on 06 Jun 2013, 02:34 PM
Thank you Jay, that worked for me with SL5.
Tags
TreeView
Asked by
iramz
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Jay
Top achievements
Rank 1
Marcel
Top achievements
Rank 1
Share this question
or