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
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 GroupByExpressionsproperty 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.
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.