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

ObservableCollection performance problem

1 Answer 105 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Cristian
Top achievements
Rank 1
Cristian asked on 17 May 2012, 10:23 PM
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.

1 Answer, 1 is accepted

Sort by
0
Rosko
Telerik team
answered on 22 May 2012, 03:06 PM
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 >>

Tags
Chart
Asked by
Cristian
Top achievements
Rank 1
Answers by
Rosko
Telerik team
Share this question
or