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