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

Sorting Group Headers

3 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Todd
Top achievements
Rank 1
Todd asked on 04 Nov 2013, 07:22 PM
Currently, I'm using the grouping headers (grid header item) as a rollup for values (double) when the data is grouped, by summing the data and manually adding it to the group header item cell.

What I'm seeing is that when the user clicks to sort the column, it is sorting the item values within the groups, but is not sorting the actual groups.

For example:

Name        Team    Year1 Year2 Year3
John                        30        50        40
                    Red     20        30        10
                    Blue    10        20        30
Jane                        100      50        70
                    Red     60        10        30
                    Blue    40        40        40

If I were to sort by Year1 Desc, I would expect Jane to be first and John to be second.

Does anyone know how to sort the groups as well as the items?

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 07 Nov 2013, 02:46 PM
Hello Todd,

The behavior you are describing is expected and is made that way by design.

Groups in RadGrid are sorted by their grouping values (refer to our online demo for RadGrid - Outlook-style grouping). When sorting a column, it is expected that the items within the group will be sorted by that column and not the groups itself. 

Nevertheless, if you feel that this would be a good addition to the RadGrid functionality, please add it as a feature request in our Ideas & Feedback Portal and if it gets enough votes, our developers team could investigate the possibility for implementing this in one of our future releases.

 

Regards,
Konstantin Dikov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Vasssek
Top achievements
Rank 1
answered on 01 Apr 2014, 07:32 PM
Hello Todd,

I have similar issue. I want to sort groups by different column (datetime, etc...)

My thread is here:http://www.telerik.com/forums/how-to-sort-grouped-radgrid-whole-dataset-based-on-different-column

To Telerik:
It would be great to add this option to future release of ASP.NET AJAX framework...

To other developers: please vote for this feature !!!

Thank you

Vasssek
0
Konstantin Dikov
Telerik team
answered on 04 Apr 2014, 06:50 AM
Hello Vaclav,

I have search in our system and in the Ideas & Feedback Portal, but I was unable to find any item created for such feature. 

As I have suggested to Todd, if you think that such functionality would be a good addition to RadGrid, please create an item in our Ideas & Feedback Portal and if it get enough vote, our developers team will consider its implementation.

If you create such item you could share the link here, so it could get more votes.


Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Todd
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Vasssek
Top achievements
Rank 1
Share this question
or