This is a migrated thread and some comments may be shown as answers.

[Solved] Unhandled Exception inside ChartLegendItem

1 Answer 67 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeff Kershner
Top achievements
Rank 1
Jeff Kershner asked on 16 Sep 2010, 06:44 PM

I am doing this to manually add a ChartLegendItem:

ChartLegendItem cli = new ChartLegendItem();
cli.Label = data.company;
cli.MarkerShape = MarkerShape.Circle;
cli.Foreground = chart.PaletteBrushes[i++];
                      
chart.DefaultView.ChartLegend.Items.Add(cli);

And I am getting an IE error:

 Unhandled Error in Silverlight Application Object reference not set to an instance of an object. at Telerik.Windows.Controls.Charting.ChartLegendItem.get_HoverScope()

at Telerik.Windows.Controls.Charting.ChartLegendItem.OnMouseLeave(MouseEventArgs e)

at System.Windows.Controls.Control.OnMouseLeave(Control ctrl, EventArgs e)

at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)


Any suggestions?
--Jeff

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 17 Sep 2010, 02:37 PM
Hello Jeff Kershner,

Indeed we must admit that there was a problem when hovering user-defined legend items in the Q2 2010 version of the control, but our developers have already addressed it and you can download the latest official service pack release to get the fixed version.


Sincerely yours,
Freddie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Jeff Kershner
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or