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

Inefficient collection updates

1 Answer 13 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Moe Aboulkheir
Top achievements
Rank 1
Moe Aboulkheir asked on 12 Apr 2010, 07:44 PM
Hi,

I'm using a RadGridView with an ObservableCollection as its data source.  As a minimal test case to evaluate the efficiency of updates, I created an application which appends a single item to the collection every few seconds.  Unfortunately, it's unacceptably slow.  After the item is added, the GridView's scrollbar becomes unresponsive for about one second, and the application generally feels sluggish.  I have tried the default DataLoadMode of Synchronous, as well as the Asynchronous option, and I noticed little (if any) difference.  This is with three string columns, and no grouping or active sorting.

The unresponsive UI is compounded by some kind of scrollbar issue (potentially a Silverlight issue), whereby if I try to drag the scrollbar while an update is processing, it blocks until completion, and then the scrollbar is stuck with focus.  Regardless of whether the mouse button is held down, the vertical scroll grip tracks any vertical mouse movement.

What I'm looking for is an efficient way to handle updates which does not cause any kind of disruption to the UI, even it means disabling some of the features of the grid (grouping, or whatever).

Any help would be greatly appreciated.

Take care,
Moe

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 13 Apr 2010, 01:30 PM
Hello Moe Aboulkheir,

I have prepared sample project demonstrating filling the grid with new items each 100 milliseconds. However I am unable to get any performance issues. Can you please check it and let me know if this helps in your case. If not, can you please provide some additional information about scenario in which the problem occurs?

Greetings,
Tsvyatko
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.
Tags
GridView
Asked by
Moe Aboulkheir
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or