This question is locked. New answers and comments are not allowed.
I'm having a problem with a chart in my application after upgrading to Q2 2010 from Q1 2010 SP2.
After upgrading to Q2 2010, when you move the mouse pointer over items in the legend for the chart it throws an Just In Time exception.
I was able to reproduce this issue outside of my production application by doing the following.
1. Create a new Silverlight Application in VS2010 (not a RadSilverlight Application)
2. Manually add references to Telerik.Windows.Controls.Charting DLL from Q1 2010 SP2 (I also added references for Telerik.Windows.Controls and Telerik.Windows.Data)
3. Add a simple RadChart to the XAML.
4. In the code-behind, Initialize the chart as a DoughnutSeries, add some data and define custom legend items.
i.e.
5. Run the project and verify that the application doesn't have an exception when you mouse over the legend items.
6. From VS2010, use the Telerk Silverlight Upgrade Wizard to upgrade the Telerik controls to Q2 2010.
7. Re-run the application and verify that the application does throw an exception when you mouse over the legend items.
I've been able to do this several times with test projects.
My question is how do I fix this in my production application?
After upgrading to Q2 2010, when you move the mouse pointer over items in the legend for the chart it throws an Just In Time exception.
I was able to reproduce this issue outside of my production application by doing the following.
1. Create a new Silverlight Application in VS2010 (not a RadSilverlight Application)
2. Manually add references to Telerik.Windows.Controls.Charting DLL from Q1 2010 SP2 (I also added references for Telerik.Windows.Controls and Telerik.Windows.Data)
3. Add a simple RadChart to the XAML.
4. In the code-behind, Initialize the chart as a DoughnutSeries, add some data and define custom legend items.
i.e.
ChartLegendItemCollection legendCollection =
new
ChartLegendItemCollection();
legendCollection.Add(
new
ChartLegendItem { Label =
"Received"
, Background = _backgroundBrushes[0] });
legendCollection.Add(
new
ChartLegendItem { Label =
"Pending"
, Background = _backgroundBrushes[1] });
MyPieChart.DefaultView.ChartLegend.Items.Clear();
MyPieChart.DefaultView.ChartLegend.UseAutoGeneratedItems =
false
;
MyPieChart.DefaultView.ChartLegend.Items.Add(legendCollection[0]);
MyPieChart.DefaultView.ChartLegend.Items.Add(legendCollection[1]);
MyPieChart.PaletteBrushes.Add(_backgroundBrushes[0]);
MyPieChart.PaletteBrushes.Add(_backgroundBrushes[1]);
MyPieChart.DefaultSeriesDefinition =
new
DoughnutSeriesDefinition();
MyPieChart.ItemsSource = _routeBreakdown;
MyPieChart.Rebind();
5. Run the project and verify that the application doesn't have an exception when you mouse over the legend items.
6. From VS2010, use the Telerk Silverlight Upgrade Wizard to upgrade the Telerik controls to Q2 2010.
7. Re-run the application and verify that the application does throw an exception when you mouse over the legend items.
I've been able to do this several times with test projects.
My question is how do I fix this in my production application?