Q2 2010 Upgrade Issue

3 posts, 0 answers
  1. Lee Weisenberger
    Lee Weisenberger avatar
    72 posts
    Member since:
    Nov 2009

    Posted 22 Jul 2010 Link to this post

    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.
    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?
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 22 Jul 2010 Link to this post

    Hi Lee,

    Indeed we must admit you have come across a bug within the chart control related to custom legend items that was introduced in the latest version of the control. Unfortunately we cannot suggest a workaround at the moment but we have already forwarded the issue to our developers and it will be fixed for the weekly internal build available tomorrow.

    Sorry for the temporary inconvenience.


    All the best,
    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
  3. Lee Weisenberger
    Lee Weisenberger avatar
    72 posts
    Member since:
    Nov 2009

    Posted 22 Jul 2010 Link to this post

    Thanks for the update.

    I look forward to the fix.
Back to Top