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

RadGridView - Custom sorting issue

1 Answer 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Balaji
Top achievements
Rank 1
Balaji asked on 11 Sep 2013, 06:51 AM
Hi,
  
I am using Telerik RadGridView in our project.   
  
This GridView will have dropdown columns.  While doing sorting it sorts based on dropdown list item's Id instead of Display text.
  
So i am doing custom sorting to sort based on display member.  It works fine.  
  
If the record count is huge say for example more than 10,000 application is not responding.
  
Is there any workaround for this issue ?
  
Thanks
Balaji

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 16 Sep 2013, 06:17 PM
Hi Balaji,

You do not need to perform custom sorting in order to sort by DisplayMember. You should set the DisplayMemberSort property of the GridViewComboBoxColumn to true and this will sort by the DisplayMember for you.

Generally speaking, it is more recommended to use the built-in sorting mechanisms where applicable. Still, in the case of a greater amount of records in this case, there could be a delay, because the display members should be first looked up on top of the value members and only then they can be sorted.

Regards,
Nikolay
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Balaji
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or