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

ObservableCollection of ObservableCollections doesn't update live data

1 Answer 52 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 13 Jan 2011, 07:56 AM
Hi,

I've created a ObservableCollection of ObservableCollections for data binding, but when i add data to the inner collections, chart isn't updated. If i add a timer that null's and re-adds the ItemsSource it works, but that defeats the purpose of ObservableCollection. Any clues?

Michael

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 18 Jan 2011, 09:02 AM
Hello Michael,

You can review our help topic DataBinding to Nested Collections where the RadChart is databound to ObservableCollection of Observable Collection as in your scenario.
NOTE that The key in using nested collections is to use the SeriesMapping.CollectionIndex property. This is well described in our help article mentioned above.

Kind regards,
Evgenia
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Chart
Asked by
Michael
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or