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

Column SortState clearing when RadDomainDataSource loads

2 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 02 Nov 2011, 04:28 PM
I am doing some custom sorting on a RadGridView using a RadDomainDataSource.  The sort uses multiple sort descriptors in order to create an OrderBy, ThenBy sort.  The sorting works fine, but when the RDDS loads the data, the sort state on the column is reset (I'm guessing because it's seeing multiple sort descriptors) and the sort state goes to None.  Is there a way to override the default behavior so that it will keep the sort state after a data load?

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 04 Nov 2011, 02:51 PM
Hi,

 Can you try to set IsCustomSortingEnabled to true for this column to see what will be the result?

Best wishes,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Benjamin
Top achievements
Rank 1
answered on 04 Nov 2011, 03:56 PM
Looks like that worked.  Thanks for your help!
Tags
GridView
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Benjamin
Top achievements
Rank 1
Share this question
or