This question is locked. New answers and comments are not allowed.
We have a custom behavior that sets mapping.SeriesDefinition.Visibility with binding to a checkbox mode=twoway.
It works on charts that do not use group descriptors.
Attached is screenshot.
Notice that Food is unchecked = collapsed on seriesdefinition.visiblity. However, the generated groupped items remain on the chart.
How else can i get the generated groupping visibility to be turned off? My next attempt will be to apply seriesmapping programmatically : (
It works on charts that do not use group descriptors.
Attached is screenshot.
<telerik:SeriesMapping> <telerik:SeriesMapping.SeriesDefinition> <telerik:LineSeriesDefinition LegendDisplayMode="SeriesLabel" SeriesName="Food" ShowItemLabels="False" ShowItemToolTips="True" ItemLabelFormat="#Y" ItemToolTipFormat="#DATAITEM.Food{C2} Food #DATAITEM.FoodAvg{C2} Avg"> <telerik:LineSeriesDefinition.Appearance> <telerik:SeriesAppearanceSettings Fill="#00e8ff" /> </telerik:LineSeriesDefinition.Appearance> <telerik:LineSeriesDefinition.InteractivitySettings> <telerik:InteractivitySettings HoverScope="Series" SelectionScope="Series" /> </telerik:LineSeriesDefinition.InteractivitySettings> </telerik:LineSeriesDefinition> </telerik:SeriesMapping.SeriesDefinition> <telerik:SeriesMapping.GroupingSettings> <telerik:GroupingSettings> <telerik:GroupingSettings.GroupDescriptors> <telerik:ChartGroupDescriptor Member="StoreName" /> </telerik:GroupingSettings.GroupDescriptors> </telerik:GroupingSettings> </telerik:SeriesMapping.GroupingSettings> <telerik:SeriesMapping.ItemMappings> <telerik:ItemMapping FieldName="Food" DataPointMember="YValue" /> <telerik:ItemMapping FieldName="Period" DataPointMember="XCategory" /> </telerik:SeriesMapping.ItemMappings> </telerik:SeriesMapping>Notice that Food is unchecked = collapsed on seriesdefinition.visiblity. However, the generated groupped items remain on the chart.
How else can i get the generated groupping visibility to be turned off? My next attempt will be to apply seriesmapping programmatically : (