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

SortingState in RadGridView

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rakesh
Top achievements
Rank 1
Rakesh asked on 07 Sep 2011, 10:02 AM
I am not able binding a property to SortingState property of the radgridcolumn, is it possible to bind property to SortingState in the radgridview column. And i am not able clear the sortDescriptor when i am navigating from one grid view to another. I am using the same grid to bind two different collection with same columns but when i sort a column and move to other collection view sorting still persist.
I used the sortdescriptor.clear() for that but its not working.

Thanks for your help in advance.

Regards,
Rakesh

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 07 Sep 2011, 03:22 PM
Hi Rakesh,

 Generally sorting state of grid columns is just for visual purposes - will not sort your data. If you want have sorting synchronized between the view (grid) and your model you can use ColumnSortDescriptor.

Regarding the clearing of the SortDescriptors, please try GridView.SortDescptors.Clear().

I hope that this is helpful.

Regards,
Didie
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
General Discussions
Asked by
Rakesh
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or