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

Sorting Group header

6 Answers 213 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chris Lynch
Top achievements
Rank 1
Chris Lynch asked on 26 Oct 2010, 04:03 PM
How do I sort on a aggragated grouped column 
example if I group and sum on product  sold
how would I sort grouping show top seller in desc order
Please so example in VB

6 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 29 Oct 2010, 04:40 PM
Hi Chris Lynch,

Thank you for writing.

If I understand you correctly, you want to apply a custom group sorting, based on summary item values. This scenario is not supported in current version of RadGridView, but the good news is that we will introduce a whole CustomGrouping mechanism, which will allow for implementing your requirement in the upcoming Q3 2010 release.

Let me know if you have any additional questions.

Regards,
Martin Vasilev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Chris Lynch
Top achievements
Rank 1
answered on 15 Nov 2010, 10:13 PM
Martin
Now that Q3 2010 is out can you provide me with an example of how this custom grouping  sorting is done in VB.net
Chris
0
Julian Benkov
Telerik team
answered on 19 Nov 2010, 02:27 PM
Hi Chris Lynch,

There is an example demonstrating how custom grouping works in our demo application. Please check the RadGridView - Grouping section. However, currently the custom groups sorting feature is not available. We plan to include this functionality in our upcoming service pack - Q3 2010 SP1.

Should you have any other questions, please do not hesitate to write back.

Sincerely yours,
Julian Benkov
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
0
Bernd
Top achievements
Rank 1
answered on 07 Oct 2011, 10:05 AM
Hello,

is the Group sorting feature available in the 2011.Q2 release?

Regards, Bernd
0
Julian Benkov
Telerik team
answered on 12 Oct 2011, 12:15 PM
Hi Bernd,

To change the order of your Groups using custom grouping, you must implement your own generic Group comparer and change the default one. Here is a simple example:

public class GroupComparer : IComparer<Group<GridViewRowInfo>>
{
    public int Compare(Group<GridViewRowInfo> x, Group<GridViewRowInfo> y)
    {
        return x.Key.GetHashCode().CompareTo(y.Key.GetHashCode());
    }
}
 
public GridForm1()
{
    InitializeComponent();
    
    this.radGridView1.MasterTemplate.GroupComparer = new GroupComparer();
}

I hope this helps. 

Best wishes,
Julian Benkov
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

0
Bernd
Top achievements
Rank 1
answered on 12 Oct 2011, 01:48 PM
Hi Julian,

yes that helps.
Thank you very much!

Regards, Bernd
Tags
GridView
Asked by
Chris Lynch
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Chris Lynch
Top achievements
Rank 1
Julian Benkov
Telerik team
Bernd
Top achievements
Rank 1
Share this question
or