Problem Binding to RadTreeListView

1 posts, 0 answers
  1. Bhaskar Khaund
    Bhaskar Khaund avatar
    12 posts
    Member since:
    May 2010

    Posted 06 Mar 2012 Link to this post

    Hi,

    I am using a TreeListView to display data as multi-column tree. I have set my VM as DataContext to the page and giving my VM property as the ItemsSource of the TreeListView control. When I change the underlying data in VM, it updates the data in the grid normally for the 1st time, but it never updates the data in the grid after that. I checked the data in VM is always right, but the grid never shows the update. It happens only once.

    My grid code is:
    <telerik:RadTreeListView x:Name="trvHierachyData" ItemsSource="{Binding Path=Data}">
                <telerik:RadTreeListView.ChildTableDefinitions>
                    <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}">
                        <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}">
                            <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}">
                                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}">
                                    <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}">
                                    </telerik:TreeListViewTableDefinition>
                                </telerik:TreeListViewTableDefinition>
                            </telerik:TreeListViewTableDefinition>
                        </telerik:TreeListViewTableDefinition>
                    </telerik:TreeListViewTableDefinition>
                </telerik:RadTreeListView.ChildTableDefinitions>
            </telerik:RadTreeListView>


    I am setting the page data context to the VM, i.e. in page ctor - this.DataContext = vmMainControl. The VM has a property by the name of Data which is of type ObservableCollection<T>. The Data collection has Items which is a collection collection of that node.

    Please let me know if I am not clear

    Regards,
    Bhaskar
Back to Top