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

group sorting problem

1 Answer 32 Views
GridView
This is a migrated thread and some comments may be shown as answers.
haochen
Top achievements
Rank 1
haochen asked on 20 Oct 2015, 12:15 PM

Hi,

I have a question about GridView group sorting problem.

If I have some data like this:

Group_Name | Group_Order

T_group         |        1

T_group         |        1​

M_group        |        3

M_group        |        3

M_group        |        3​​

J_group         |         2

J_group         |         2 

I want to GridView grouping by "Group_name" but the group order column is "Group_Order".

 

Do you have some good idea?

Thank you

 

 

 

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 22 Oct 2015, 09:11 AM
Hello haochen,

You can customize the sorting expression of the groups by overriding the GreateGroupSortExpression of a group descriptor. More information can be found in the "About Reorder by SumFunction Value" forum thread.



Regards,
Maya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
haochen
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or