Hello,
I am creating a RadChart with ChartLegend customized and am trying to implement the feature of interactivity, I am getting the following error message:
Unhandled Error in Silverlight Application Object reference not set to an instance of an object. em Telerik.Windows.Controls.Charting.ChartLegendItem.get_HoverScope()\n
em Telerik.Windows.Controls.Charting.ChartLegendItem.OnMouseLeave(MouseEventArgs e)\n
em System.Windows.Controls.Control.OnMouseLeave(Control ctrl, EventArgs e)\n em MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)"
I'm using version RadControls for Silverlight Q2 2010.
When I select the bars of the graph works fine but when I move the mouse over the ChartLegend the error appears.
Thanks...
I am creating a RadChart with ChartLegend customized and am trying to implement the feature of interactivity, I am getting the following error message:
Unhandled Error in Silverlight Application Object reference not set to an instance of an object. em Telerik.Windows.Controls.Charting.ChartLegendItem.get_HoverScope()\n
em Telerik.Windows.Controls.Charting.ChartLegendItem.OnMouseLeave(MouseEventArgs e)\n
em System.Windows.Controls.Control.OnMouseLeave(Control ctrl, EventArgs e)\n em MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)"
I'm using version RadControls for Silverlight Q2 2010.
SeriesMapping seriesMapping =
new
SeriesMapping();
seriesMapping.LegendLabel = Caption;
seriesMapping.SeriesDefinition = serieDefinition;
seriesMapping.SeriesDefinition.ShowItemToolTips =
true
;
seriesMapping.SeriesDefinition.ShowItemLabels =
false
;
seriesMapping.SeriesDefinition.Appearance.Fill = chart.PaletteBrushes;
seriesMapping.SeriesDefinition.InteractivitySettings.HoverScope = InteractivityScope.Series;
seriesMapping.SeriesDefinition.InteractivitySettings.SelectionScope = InteractivityScope.Series;
ItemMapping itemMappingX =
new
ItemMapping();
itemMappingX.DataPointMember = DataPointMember.XCategory;
itemMappingX.FieldName = axis1;
seriesMapping.ItemMappings.Add(itemMappingX);
ItemMapping itemMappingY =
new
ItemMapping();
itemMappingY.DataPointMember = DataPointMember.YValue;
itemMappingY.FieldName = member.Caption;
seriesMapping.ItemMappings.Add(itemMappingY);
chart.SeriesMappings.Add(seriesMapping);
ChartLegendItem cli =
new
ChartLegendItem();
cli.Label = Caption;
cli.MarkerShape = markerShapes;
cli.Background = chart.PaletteBrushes;
chart.DefaultView.ChartLegend.Items.Add(cli);
When I select the bars of the graph works fine but when I move the mouse over the ChartLegend the error appears.
Thanks...