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

GridView: disable sort in grouping row

1 Answer 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 22 Feb 2012, 12:11 AM
Hi,

Is there a way to make the GridView's columns not sortable when they have been dropped in the grouping row? 
I want to disable the sort capability just from the ones in the grouped by area and keep it for the column headers

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 22 Feb 2012, 08:28 AM
Hello Ricardo,

You can try handling Sorting event and cancel it for the columns you want. Another possible approach would be to set IsSortable property of GridViewDataColumn on grouping it (during Grouped event for example).
 

All the best,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
General Discussions
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or