Hello!
We recently upgraded to version 2011.2.712.1040 and we are seeing some unexpected behavior from the RadChart that was not present before. Upgrading the Telerik DLLs exposed the issue.
The problem is present when multiple series are charted. The example shown here can serve as a guide.
http://www.telerik.com/help/wpf/radchart-populating-with-data-data-binding-to-nested-collections.html
Notice the use of CollectionIndex ...
//Series mapping for the collection with index 1
seriesMapping =
new
SeriesMapping();
seriesMapping.CollectionIndex = 1;
seriesMapping.LegendLabel =
"MSFT"
;
seriesMapping.SeriesDefinition =
new
LineSeriesDefinition();
seriesMapping.SeriesDefinition.ShowItemLabels =
false
;
itemMapping =
new
ItemMapping();
itemMapping.DataPointMember = DataPointMember.YValue;
itemMapping.FieldName =
"Close"
;
seriesMapping.ItemMappings.Add( itemMapping );
this
.radChart.SeriesMappings.Add( seriesMapping );
Is this the intended behavior? Do we now have to manage the CollectionIndex on each individual item instead of letting the collection implicitly manage child object indexes by default? Now individual items are responsible for this? Seems odd. Can you confirm?
Issue 2. CollectionIndex is order dependent? It seems that if you set CollectionIndex last, before adding the mapping to the SeriesMapping collection instead of first (as shown above), then the LegendLabel that was set will be ignored. What we see is that LegendLabel must be set AFTER CollectionIndex or the LegendLabel will not show. This seems odd as well. Can you confirm this issue also?
Obviously the workarounds are easy (after tracking down the issue). We now explicitly set CollectionIndex and we set it first (not last). But these seem like unnecessary, hidden dependencies.
Thanks!