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

How can I disable sorting in the GROUPED columns ?

2 Answers 284 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nuno
Top achievements
Rank 1
Nuno asked on 04 Sep 2013, 09:06 PM

Hi All,

I'm looking forward to disable the sorting feature baked in the columns that become grouped as the users drag a column to the group header. I also want to remove the sort icon from the same grouped columns.

Any suggestions?

Thank you.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 06 Sep 2013, 07:16 AM
Hi,

You can set the CanUserSortGroups property of the RadGridView to False. That way the user will not be allowed to sort the Groups.  

If you would like to remove the sorting indicator, then you should edit the template of the GridViewGroupPanelCell and change is accordingly. You can check our online documentation for a reference.

I hope this helps.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Nuno
Top achievements
Rank 1
answered on 06 Sep 2013, 05:48 PM
Hi Didie,

The version I'm using is so old that I don't have the CanUserSortGroups property available.

Anyways, I was able to get around this by canceling the sort grouping event when e.Action == GroupingEventAction.Sort and I also successfully removed the sorting indicator from the template.

Thanks for helping out.


Tags
GridView
Asked by
Nuno
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Nuno
Top achievements
Rank 1
Share this question
or