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

[Solved] Performance of GridView sort

7 Answers 154 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
kyle
Top achievements
Rank 1
kyle asked on 23 Nov 2010, 10:16 AM
Hi,

I have a grid that is bound to 500+ records with 11 columns. When enabled the sort feature, you click the header of every column to sort it, it will very very slow. If you set the IsSortable of every column to false,if will be fast.Do you have some suggestion to optimize this?

BR
Kyle

7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 23 Nov 2010, 10:23 AM
Hello,

 Can you post more info about your grid/page setup and the grid version?

Sincerely yours,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
kyle
Top achievements
Rank 1
answered on 23 Nov 2010, 11:36 AM
RadControls for Silverlight Q2 2010 SP2 (i also tried it with the last version Q3)
Microsoft Silverlight Version: 4.0.50917.0
Microsoft Visual Studio 2010 Version 10.0.30319.1 RTMRel
Microsoft .NET Framework Version 4.0.30319 RTMRel


0
Vlad
Telerik team
answered on 23 Nov 2010, 11:54 AM
Hello,

 Please post also your grid/page setup and how the grid is bound.

All the best,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Evaluator
Top achievements
Rank 1
answered on 17 Feb 2011, 07:47 PM
Was there ever any resolution to this issue? I'm just wondering what the expected performance should be with 15 columns, and 600 rows? I've bound it to an ObservableCollection, and it seems to be really slow compared to a standard Silverlight datagrid (like, <1s to 3s)

I'm wondering if I should be binding to anything else to improve performance?
0
Vlad
Telerik team
answered on 18 Feb 2011, 08:34 AM
Hello,

 We've never received more info about this problem. You can check for example this demo to know more how the grid will sort 1 mil. records. With our upcoming Q1 2011 Beta you will get even faster performance with sorting. 

Best wishes,
Vlad
the Telerik team
0
Evaluator
Top achievements
Rank 1
answered on 18 Feb 2011, 11:16 AM
Ok thanks. I've tried out binding a grid to 1000 records, where each record has 15 string properties (randomly generated), and it seems to be quite a bit faster than in my other code.

I can only think the sorting is being slowed down by one of the properties in my "real life" version. Even with 6 columns, 600 records it's about 2s to sort. Are there any "gotchas" I should be looking out for? Binding to null properties or something?
0
Vlad
Telerik team
answered on 18 Feb 2011, 12:21 PM
Hello,

 Please verify if the grid is not measured with infinity. This can happen if the grid is inside StackPanel, ScrollViewer, etc. 

All the best,
Vlad
the Telerik team
Tags
GridView
Asked by
kyle
Top achievements
Rank 1
Answers by
Vlad
Telerik team
kyle
Top achievements
Rank 1
Evaluator
Top achievements
Rank 1
Share this question
or