ContainerBindingCollection no longer working

3 posts, 0 answers
  1. Ross
    Ross avatar
    2 posts
    Member since:
    Jun 2011

    Posted 28 Jun 2011 Link to this post

    The following code was working until I upgraded to the latest dlls. Now when I expand a node the section that used to display child information is blank:
    <UserControl.Resources>
        <telerik:ContainerBindingCollection x:Key="RadTreeViewBindings">
            <telerik:ContainerBinding Binding="{Binding IsExpanded, Mode=TwoWay}" PropertyName="IsExpanded" />
        </telerik:ContainerBindingCollection>
    </UserControl.Resources>
     
    <Grid x:Name="LayoutRoot" Background="White">
        <telerikGridView:RadTreeListView x:Name="SourceDataTreeView" AutoExpandGroups="True" AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding Path=Children}" RowIndicatorVisibility="Collapsed" SelectionMode="Single" ShowColumnHeaders="False" ShowGroupPanel="False" ShowInsertRow="False" telerik:ContainerBinding.ContainerBindings="{StaticResource RadTreeViewBindings}">
            <telerikGridView:RadTreeListView.ChildTableDefinitions>
                <telerikGridView:TreeListViewTableDefinition ItemsSource="{Binding Path=Children}" telerik:ContainerBinding.ContainerBindings="{StaticResource RadTreeViewBindings}"/>
            </telerikGridView:RadTreeListView.ChildTableDefinitions>
            <telerikGridView:RadTreeListView.ItemTemplate>
                <telerik:HierarchicalDataTemplate telerik:ContainerBinding.ContainerBindings="{StaticResource RadTreeViewBindings}" />
            </telerikGridView:RadTreeListView.ItemTemplate>
            <telerikGridView:RadTreeListView.RowStyle>
                <Style TargetType="GridView:GridViewRow">
                    <Setter Property="f:SetterValueBindingHelper.PropertyBinding">
                        <Setter.Value>
                            <f:SetterValueBindingHelper Binding="{Binding Path=IsExpanded}" Property="IsExpanded" />
                        </Setter.Value>
                    </Setter>
                </Style>
            </telerikGridView:RadTreeListView.RowStyle>
            <telerikGridView:RadTreeListView.Columns>
                <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Path=Name}" Header="Name" />
                <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Path=Value}" Header="Value" />
                <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Path=PropertyType}" Header="Type" />
            </telerikGridView:RadTreeListView.Columns>
        </telerikGridView:RadTreeListView>
    </Grid>

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 30 Jun 2011 Link to this post

    Hello,

     Can you post more info in which version this worked? Several months ago we changed the treelist expand/collapse logic due to performance reasons and with latest versions of RadTreeListView binding to IsExpanded is not supported. 

    All the best,
    Vlad
    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
  3. DevCraft banner
  4. Ross
    Ross avatar
    2 posts
    Member since:
    Jun 2011

    Posted 30 Jun 2011 Link to this post

    It worked w/ version 2010.2.924.1040.

Back to Top