I am trying to bind my chart to a ObservableCollection of ObservableCollections is this possible?
I have worked look at ms-help://telerik.windows.controls/telerik.windows.controls.charting/data-binding-series-mappings.html but no joy. Do you have a sample of this in VB ?
5 Answers, 1 is accepted
Please check this blog post. The code is in C#, however, it is minimal and you can use our converter to translate it to VB.
Greetings,
Vladimir Milev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.

However if i have my chart bound to an ObservableCollection of ObservableCollections and another ObservableCollection is added the chart will not display the extra Series as There are no Series Mappings set up. Consider the following code
Dim
m1 As New SeriesMapping()
Dim m2 As New SeriesMapping()
m1.CollectionIndex = 0
m1.SeriesDefinition =
New LineSeriesDefinition
m2.CollectionIndex = 1
m2.SeriesDefinition =
New LineSeriesDefinition
Dim im1 As New ItemMapping
im1.DataPointMember = DataPointMember.YValue
Dim im2 As New ItemMapping
im2.DataPointMember = DataPointMember.YValue
m1.ItemMappings.Add(im1)
m2.ItemMappings.Add(im2)
NextPage.RadChart1.SeriesMappings.Add(m1)
NextPage.RadChart1.SeriesMappings.Add(m2)
NextPage.RadChart1.ItemsSource = MyData
How if a new data Series is added to MyData the chart only displays the first 2 series how can i make it display all automaticaly
This not available out-of-the-box. You will need to manually update your mappings.
We apologize for the inconvenience.
Kind regards,
Vladimir Milev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.

You should bind your chart to an ObservableCollection<ObservableCollection<T>> in order to get collection change notifications which the chart control handles and updates the data series. Please find attached a small example demonstrating this approach.
Hope this will help.All the best,
Velin
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.