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

Solution to aggregate summary allignment/sorting

3 Answers 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brian Graves
Top achievements
Rank 1
Brian Graves asked on 28 May 2010, 01:10 AM
I'm trying to solve the following 2 issues:
1)    the aggregate summary information doesn't align with the column headers
2)    I can't sort the group rows according to the aggregate summary information

I've seen lots of posts about this but no solutions except this one:
http://www.telerik.com/community/forums/silverlight/gridview/groupheadertemplate-gt-align-aggregate-source-column-to-the-actual-column.aspx

Unfortunately, after applying a ControlTemplate, my group aggregates disappear and only the footer summary is shown for each group.  This is explained here…
http://www.telerik.com/community/forums/wpf/gridview/gridviewgrouprow-styling-aggregates-not-showing-up.aspx

…so is this something that telerik still needs to fix?


If not, please reply with an example solution for aligning aggregate summary information to the columns,

Thank you.

3 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 31 May 2010, 11:12 AM
Hello Brian Graves,

Both your issues are not supported in the grid out of the box and as such there is the need to add some custom logic and template editing to get the desired results.

1. I would gladly send you a sample for your case, however I would be needing a bit more information about what you want to achieve. A screenshot would also be greatly appreciated.

2. As for the sorting by the aggregation results - I would like to point your attention to the following forum post for more information.
http://www.telerik.com/community/forums/silverlight/gridview/aggregate-function-and-sorting.aspx

Best wishes,
Kalin Milanov
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
Brian Graves
Top achievements
Rank 1
answered on 02 Jun 2010, 12:24 AM
For number 1, I just want to get the header aggregate GROUP info to align with the corresponding columns.  Please attach any example that does this.  I haven't been able to get anything to work...even with a simple sample grid and the instructions given here:
http://www.telerik.com/community/forums/silverlight/gridview/groupheadertemplate-gt-align-aggregate-source-column-to-the-actual-column.aspx

For number 2, I couldn't get the aggregate sorting to work with the corresponding column header using the forum post you suggested...possible because there is only one aggregate count function and not one for each column.  If this is the case, please let me know how to sort each column (my columns already have separate aggregate function added programatically) by the corresponding header aggregate GROUP info without causing addition groups to get created (this happens if I try to add more SortingGroupDescriptors).  Thank you.
0
Kalin Milanov
Telerik team
answered on 08 Jun 2010, 07:51 AM
Hello Brian Graves,

I have prepared a sample combining the sorting logic from the previous reply and a restyled grid to place the aggregates in the header. Please review it and let me know whether this fits your case.

All the best,
Kalin Milanov
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.
Tags
GridView
Asked by
Brian Graves
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Brian Graves
Top achievements
Rank 1
Share this question
or