performace issue when adding dataseries

2 posts, 0 answers
  1. simon
    simon avatar
    6 posts
    Member since:
    Jun 2009

    Posted 12 Aug 2009 Link to this post

    I have the following test code:
    page.xaml:
    <my:RadChart x:Name="chart"></my:RadChart>

    page.xaml.cs
    public Page()
    {
    InitializeComponent();
    this.Loaded += new RoutedEventHandler(Page_Loaded);
    }
    void Page_Loaded(object sender, RoutedEventArgs e)
    {
    DataSeries dataSeries;
    DataPoint dataPoint;
    dataSeries = new DataSeries();
    dataSeries.Definition = new BarSeriesDefinition();
    dataPoint = new DataPoint();
    dataPoint.YValue = 12345678;
    dataSeries.Add(dataPoint);
    chart.DefaultView.ChartArea.DataSeries.Add(dataSeries);

    dataSeries = new DataSeries();
    dataSeries.Definition = new BarSeriesDefinition();
    dataPoint = new DataPoint();
    dataPoint.YValue = 1234567;
    dataSeries.Add(dataPoint);
    chart.DefaultView.ChartArea.DataSeries.Add(dataSeries);
    }

    when run, the browser freeze, if I change the second YValue from 1234567 to 12345678, it worked fine.
    Is this a bug or I missed some settings?

  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 13 Aug 2009 Link to this post

    Hello simon,

    Indeed we must admit this was a bug within the chart control. We would suggest you to upgrade to the latest version of the Silverlight controls released yesterday (Q2 2009 SP1) that addresses the performance issue in this scenario.

    Hope this helps.


    All the best,
    Manuel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top