ObservableCollection performance problem

2 posts, 0 answers
  1. Cristian
    Cristian avatar
    1 posts
    Member since:
    Aug 2011

    Posted 17 May 2012 Link to this post

    Hello,

    I have an application using CollectionIndex feature. I´m using ItemsSource and SeriesMapping radchart properties and I´m adding my lineseries at runtime. All is working great.
    Now I want to load data asynchronously to radchart . My first shot was to use ObservableCollection<ObservableCollection> on my ItemsSource but the chart only shows the data added to collection before my graph shows up. After some time I found RadHierarchicalObservableCollection and the lineseries began to appear but the performance is horrible. I investigated and discovered that each call to AddRange generated a Rebind.
    I´m trying to add 6 series with 10000 points each. 

    There are another way to do it?

    Thank you very mutch.

  2. Rosko
    Admin
    Rosko avatar
    137 posts

    Posted 22 May 2012 Link to this post

    Hello Christian,

    We investigated the scenario. What we can suggest are two options. The first one is to use our new RadChartView control which has proved to have better performance than RadChart. You may find the most important highlights of features and functionality of the two controls in this help topic.  The other way is to use another collecltion, for example List. After you finish adding items, you just need manually to call the Rebind method of RadChart and you will have it refreshed.

    All the best,
    Rosko
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top