Hi,
I'm looking to dynamically set the ItemsSource property of a SeriesMapping in code-behind. Here's the XAML I'm trying to achieve:
The code I'd like to use is as follows:
However, there is no function "SetBinding" for a SeriesMapping. I am able to do this in code-behind for the entire chart (which I am doing right now), however I'd like to chart a series from a separate data source and specify bind the "ItemsSource" property of the individual series in code-behind (so that the "ItemsSource" can be dynamically built). How can I do this?
Kind regards,
Dave.
I'm looking to dynamically set the ItemsSource property of a SeriesMapping in code-behind. Here's the XAML I'm trying to achieve:
<
telerik:SeriesMapping
x:Name
=
"EventTypeSeries"
ItemsSource
=
"{Binding EventAlarmLog}"
>
The code I'd like to use is as follows:
EventTypeSeries.SetBinding(SeriesMapping.ItemsSourceProperty,
"EventAlarmLog"
)
However, there is no function "SetBinding" for a SeriesMapping. I am able to do this in code-behind for the entire chart (which I am doing right now), however I'd like to chart a series from a separate data source and specify bind the "ItemsSource" property of the individual series in code-behind (so that the "ItemsSource" can be dynamically built). How can I do this?
Kind regards,
Dave.