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

Problem Binding to RadTreeListView

0 Answers 38 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Bhaskar Khaund
Top achievements
Rank 1
Bhaskar Khaund asked on 06 Mar 2012, 09:27 AM
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

No answers yet. Maybe you can help?

Tags
TreeListView
Asked by
Bhaskar Khaund
Top achievements
Rank 1
Share this question
or