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

How to sort grouped radgrid whole dataset based on different column

1 Answer 191 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vasssek
Top achievements
Rank 1
Vasssek asked on 16 Jun 2013, 08:31 PM
Hello Telerik Team,

I have searched all forums threads and didn't find relevant answer.

Please could you provide a sample, how to sort radgrid clicking on a non-grouped column that takes the entire dataset into consideration, yet maintains the integrity of the groups ? After click on some column, it should order groups based on column value, as well. 

Here is similar issue http://www.telerik.com/community/forums/aspnet/grid/sorting-a-grouped-grid.aspx without solution...

Consider this example:
GroupA
     Value5
     Value3
GroupB
     Value1

This happens when I click the sort of a column:

GroupA
     Value3
     Value5
GroupB
     Value1

What I'm wanting:

GroupB
     Value1
GroupA
     Value3
     Value5


Thank you

Best regards

Vasssek

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 19 Jun 2013, 07:24 AM
Hello Vasssek,

The grid does not support such type of sorting. The Groups has their own sorting, and inside each group you will see the record sorted by other column.

If I understands you correctly, you want to sort the groups, by their records(and not by the group itself), which is not possible.

Regards,
Vasil
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.
Tags
Grid
Asked by
Vasssek
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or