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

GroupHeaderTemplate -> Align aggregate source column to the actual column

8 Answers 335 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Zack
Top achievements
Rank 1
Zack asked on 17 Dec 2009, 01:35 PM
Hi,

I am trying to create a layout with the grid where my aggregates, which show in the group header, are aligned perfectly to the source column which they are providing an aggregate for.  Is this possible in the GroupHeaderTemplate?  I also note that there seems to be a bug with regard to the Group Footer which does not maintain its alignment to the detail rows in the grid.

Thanks for any help

Zack

8 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 21 Dec 2009, 09:23 AM
Hi Zack,

The easiest solution which could possibly work is to the following:

1. Find the following XAML in the template of the GridViewGroupRow
<Border x:Name="Content" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="5" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
                  
    <StackPanel Visibility="{Binding ElementName=HeaderButton, Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}">
        <grid:GridViewVirtualizingPanel x:Name="PART_GridViewVirtualizingPanel" />
        <grid:GridViewGroupFooterRow x:Name="Footer" telerik:StyleManager.Theme="{StaticResource Theme}" />
    </StackPanel>
  
</Border>

This part of the template is responsible for the displaying of the content when the group is expanded (Rows and GroupFooterRow). If you swap the places of the GridViewVirtualizingPanel and GridViewGroupFooterRow you will make the GroupFooterRow above the rows.

The downside is that you will still have the faulty behavior of the group footer which we are currently working on fixing.

That being said we are also looking into various ways of improving aggregate display and providing them in the header and aligned to the columns is one of features we are considering. Unfortunately I cannot provide you a specific timeframe on when this will be available.

Sincerely yours,
Kalin Milanov
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.
0
Kevin Happe
Top achievements
Rank 1
answered on 24 Jun 2010, 10:48 PM
Is there an update on this? 
We would like the ability to show the sum of a column on the group header row, when it is collapsed, show up in the column that represents the data.  And when the group is expanded the group header row would not show the sums of the columns and would use the group footer row to show the total.
0
Kalin Milanov
Telerik team
answered on 25 Jun 2010, 07:53 AM
Hi Kevin Happe,

Currently there is still nothing implemented in the grid on that part. The good news, however, is that after a lot of customer feedback and internal brainstorming we have designed a way of improving on displaying of aggregates. The features we will be working on is displaying them aligned with the columns, sorting by aggregate functions, displaying both aligned and "unbound" aggregates to name a few. 

Our plan is to have this functionality as a part of our Q3 offering. I realize this could be quite a wait but we want to really nail it this time around.

Sincerely yours,
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
Marlen
Top achievements
Rank 1
answered on 11 Jan 2011, 09:34 PM
Hello,
I need to know whether aligning the aggregates to the columns in the gridview was implemented in Q3 release.

Thanks for  your answer,
Marlen
0
Kalin Milanov
Telerik team
answered on 12 Jan 2011, 08:28 AM
Hi Marlen,

We still have not implemented this feature in the grid. Unfortunately other features, performance improvements and bug fixes took precedence over this one. That said we have not abandoned hope that you will be able to display aligned to column aggregates in the group header, and neither should you. At this point, however, and after that many delays I am hesitant to provide you with any estimate on when will this happen.

I apologize for the wait. I hope at the end it will be worth it.

Kind regards,

Kalin Milanov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Martin
Top achievements
Rank 1
answered on 14 Feb 2011, 11:51 PM
Any update on when this may be available? This is a huge adoption feature for us, currently using Component One, but would love to switch to you guys due to Silverlight memory leaks. But this is a show stopper, trying to think of a work around. Looking to achieve the attached.

Marty
0
Maya
Telerik team
answered on 15 Feb 2011, 08:49 AM
Hi,

This feature is still in our product backlog and we are investigating the best possible approach for implementing it. Unfortunately, no time frame can be defined. You may vote for it in our Public Issue Tracking System. The more votes it has, the higher its priority is.
In the meantime, may take a look at this forum thread for a reference on an available workaround.
 
Best wishes,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Mayur
Top achievements
Rank 1
answered on 31 Jan 2012, 01:32 PM
Hello,

Even I wanted to do the same thing in my project. Solution provided by you is useful but I am unable to use it. Will you please provide a source code or detailed information about this?? That would help me a lot.


Thanks & Regards,
Mayur Mahajan.
Tags
GridView
Asked by
Zack
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Kevin Happe
Top achievements
Rank 1
Marlen
Top achievements
Rank 1
Martin
Top achievements
Rank 1
Maya
Telerik team
Mayur
Top achievements
Rank 1
Share this question
or