This question is locked. New answers and comments are not allowed.
Hello,
Im pretty new to silverllight. I have a radTreeView and all I want to do is Expand all the nodes on the tree when the page loads. I have been trying this with ContainerBinding collection like this:
It is giving me no results... I tried the same thing with setting the style which also gave me no results.
and I tried ExpandAll() also. It seems like Im missing something, I feel this should be something pretty easy to do.
Thanks in advance for the help!
Im pretty new to silverllight. I have a radTreeView and all I want to do is Expand all the nodes on the tree when the page loads. I have been trying this with ContainerBinding collection like this:
>
<telerik:ContainerBindingCollection x:Name="BindingsCollection">
<telerik:ContainerBinding PropertyName="IsExpanded" Binding="{Binding Expanded, Mode=TwoWay}" />
</telerik:ContainerBindingCollection>
>
I have an expanded property on the viewmodel, and I just set it to true on new..( I dont really know what to do with it. ) :/ <telerik:RadTreeView telerik:StyleManager.Theme="Office_Blue" Name="CounterpartyTree" ItemsSource="{Binding CounterpartySource}" SelectedItem="{Binding CounterTreeSelection, Mode= TwoWay}" IsSingleExpandPath="False" IsExpandOnSingleClickEnabled="True" IsExpandOnDblClickEnabled="False"> <telerik:RadTreeView.ItemTemplate> <telerik:HierarchicalDataTemplate ItemsSource="{Binding companyDivisions}" telerik:ContainerBinding.ContainerBindings="{StaticResource BindingsCollection}" > <TextBlock Text="{Binding CompanyName}" /> </telerik:HierarchicalDataTemplate> </telerik:RadTreeView.ItemTemplate> </telerik:RadTreeView>It is giving me no results... I tried the same thing with setting the style which also gave me no results.
<Style x:Key="myItemContainerStyle" TargetType="telerik:RadTreeViewItem"> <Setter Property="Foreground" Value="Red"/> <Setter Property="IsExpanded" Value="True"/> </Style>Thanks in advance for the help!
