isExpanded binding does not work

2 posts, 0 answers
  1. Alex
    Alex avatar
    36 posts
    Member since:
    Sep 2010

    Posted 20 Sep 2010 Link to this post

    I am trying to binf isExpanded property, but the nodes dont expand on tree load ... xaml content:



    <telerik:ContainerBindingCollection x:Name="BindingsCollection"
                <telerik:ContainerBinding PropertyName="IsExpanded" Binding="{Binding Expanded, Mode=TwoWay}"/> 
                <telerik:ContainerBinding PropertyName="IsSelected" Binding="{Binding Selected, Mode=TwoWay}"/> 
            <telerik:HierarchicalDataTemplate x:Key="test" ItemsSource="{Binding Children}" 
                            telerik:ContainerBinding.ContainerBindings="{StaticResource BindingsCollection}"
                <TextBlock Text="{Binding DisplayName}"/> 
            <telerik:HierarchicalDataTemplate x:Key="Children" ItemsSource="{Binding Children}" 
                            telerik:ContainerBinding.ContainerBindings="{StaticResource BindingsCollection}"
                    <TextBlock Text="{Binding DisplayName}" /> 
    <localcontrols:RadTreeView IsLineEnabled="True" IsEditable="False" 
                        Grid.Row="0" Grid.Column="0" MinWidth="300"
                        x:Name="TreeListView" Background="White" 
                                                       ItemTemplate="{StaticResource test}"










  2. Miro Miroslavov
    Miro Miroslavov avatar
    588 posts

    Posted 23 Sep 2010 Link to this post

    Hi Alex,

     Can you check this online example. It is doing exactly that. If you still have issues with - it will be easier for us to find the problem, if you send us example project, demonstrating it.
    Thank you for your cooperation.

    Miro Miroslavov
    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