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

[Solved] Custom arrange the Groups in RadGrid

3 Answers 178 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sorin
Top achievements
Rank 1
Sorin asked on 27 Feb 2009, 12:49 PM
Hi,
I have a radGrid where I have the default Grouping by the Status Fields.
Could I arrange the Groups in a custom way or just sort ascendind or descending.

Ex. I have Status1 Group, Status 2 Group, Status 3 Group
I want to display Status 2 Group first then Status 1 Group then Status 3 Group.

3 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 27 Feb 2009, 05:51 PM
Hello Sorin,

I'm afraid you could not arrange the Groups in a custom way.
RadGrid supports grouping of items based on the value of a particular column. You can even have multilevel grouping based on different criteria.

To group the data in a grid, specify grouping criteria by setting the GroupByExpressions property of a table view in the grid. You can set the group-by expressions declaratively at design time, or programmatically in the code-behind.

More information about RadGrid grouping is available in the following link.

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sorin
Top achievements
Rank 1
answered on 02 Mar 2009, 08:03 AM
Thanks for your reply. I found a workaround that did the job.
I understood that the RadGrid is sorting by default ascending and I put in my table 01Status1, 02Status03, 03Status02.
So my groups are ordered in my custom way.
I am making substring(2) when displayed.
0
Anupam
Top achievements
Rank 1
answered on 26 Feb 2010, 05:10 PM
That's a nice work around!
Tags
Grid
Asked by
Sorin
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Sorin
Top achievements
Rank 1
Anupam
Top achievements
Rank 1
Share this question
or