This question is locked. New answers and comments are not allowed.
Hi,
I have a chartview with dynamic number of series. I am setting the LegendSettings property on the SeriesDescriptor.Style. The approach worked fine in WPF, but now I am transferring it to Silverlight and for some reason the LegendItem Title property does not want to bind to the series source.
<telerik:RadCartesianChart.SeriesProvider> <telerik:ChartSeriesProvider Source="{Binding SectionDemandAtoB}"> <telerik:ChartSeriesProvider.SeriesDescriptors> <telerik:CategoricalSeriesDescriptor ItemsSourcePath="SeriesData" ValuePath="Value" CategoryPath="Category"> <telerik:CategoricalSeriesDescriptor.Style> <Style TargetType="telerik:BarSeries" BasedOn="{StaticResource BarSeriesStyle}"> <Setter Property="CombineMode" Value="Stack" /> <Setter Property="DisplayName" Value="{Binding SeriesLabel}" /> <Setter Property="LegendSettings"> <Setter.Value> <telerik:SeriesLegendSettings Title="{Binding SeriesLabel, Converter={StaticResource debugConverter}, FallbackValue='No Series Label'}" /> </Setter.Value> </Setter> <Setter Property="DefaultVisualStyle"> <Setter.Value> <Style TargetType="Border"> <!--<Setter Property="Background" Value="Red"/>--> <Setter Property="Background" Value="{Binding DataItem.ColorString}"/> </Style> </Setter.Value> </Setter> </Style> </telerik:CategoricalSeriesDescriptor.Style> </telerik:CategoricalSeriesDescriptor> </telerik:ChartSeriesProvider.SeriesDescriptors> </telerik:ChartSeriesProvider></telerik:RadCartesianChart.SeriesProvider>The DisplayName on the series does get set correctly as the tooltip works fine. However, the debugConverter does not even get hit and it defaults to the fallbackvalue. Am I missing something?
PS: using v.2016.1.112.1050 Dev