RadGridView - Custom sorting issue

2 posts, 0 answers
  1. Balaji
    Balaji avatar
    3 posts
    Member since:
    Sep 2013

    Posted 11 Sep 2013 Link to this post

    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
  2. Nikolay
    Admin
    Nikolay avatar
    1805 posts

    Posted 16 Sep 2013 Link to this post

    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 >>
Back to Top