Sorting Group header

7 posts, 0 answers
  1. Chris Lynch
    Chris Lynch avatar
    15 posts
    Member since:
    Mar 2010

    Posted 26 Oct 2010 Link to this post

    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
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 29 Oct 2010 Link to this post

    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
  3. Chris Lynch
    Chris Lynch avatar
    15 posts
    Member since:
    Mar 2010

    Posted 15 Nov 2010 Link to this post

    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
  4. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 19 Nov 2010 Link to this post

    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.
  5. Bernd
    Bernd avatar
    7 posts
    Member since:
    Sep 2008

    Posted 07 Oct 2011 Link to this post

    Hello,

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

    Regards, Bernd
  6. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 12 Oct 2011 Link to this post

    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.

  7. Bernd
    Bernd avatar
    7 posts
    Member since:
    Sep 2008

    Posted 12 Oct 2011 Link to this post

    Hi Julian,

    yes that helps.
    Thank you very much!

    Regards, Bernd
Back to Top