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

[Solved] Disable Group Sorting

5 Answers 383 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joshua Horton
Top achievements
Rank 1
Joshua Horton asked on 03 Feb 2009, 10:13 PM
I have a grid that is using Grouping but when it is rendered the Group By values are sorting alphabetically. I'm returning the data in the order that I would like to have it rendered. Is there anyway to disable the grouping from changing the order in which the data will be rendered? Thanks.

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Feb 2009, 09:25 AM
Hi Joshua,

Try setting the SortOrder for the GroupByField to None and see if it helps.

ASPX:
  <GroupByExpressions> 
                      <telerik:GridGroupByExpression> 
                       <GroupByFields> 
                        <telerik:GridGroupByField  SortOrder="None" FieldAlias="CategoryID" FieldName="CategoryID" FormatString="" HeaderText=""/> 
                       </GroupByFields> 
            ......... 
 </GroupByExpressions> 


Thanks
Shinu




0
Randy Atkins
Top achievements
Rank 1
answered on 23 Sep 2009, 05:08 AM
I'm having the same issue.  My grouped grid is being sorted WITHIN each group.  I want to be able to sort outside of the groupings by clicking on the header items.

I am grouping by expressions on pageload:

 

Dim expression1 As GridGroupByExpression = GridGroupByExpression.Parse("field a, field b, field c, field d group by field e")

 

 

RadGrid1.MasterTableView.GroupByExpressions.Add(expression1)

How can I disable the grouped sorting so it sorts throughout the entire list and not within each group?

0
Pavlina
Telerik team
answered on 24 Sep 2009, 04:46 PM
Hi Randy,

It seems you can not disable the default sorting when grouping in the grid but may be you can try the suggestions from the following forum threads:
http://www.telerik.com/community/forums/aspnet-ajax/grid/groupby-sorting.aspx
http://www.telerik.com/community/forums/aspnet/grid/sorting-a-grouped-grid.aspx

I hope this helps.

Kind regards,
Pavlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Randy Atkins
Top achievements
Rank 1
answered on 24 Sep 2009, 04:50 PM
Thanks.  Since you can't do this with Telerik out of the box, I decided to create my own gridgrouping function in oldschool .NET Ajax.  Thanks anyway Telerik!
0
Pavlina
Telerik team
answered on 25 Sep 2009, 03:12 PM
Hi Randy,

I am happy to hear you have found a solution for your case.
Please do not hesitate to contact us if other questions or problems arise.

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Joshua Horton
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Randy Atkins
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or