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

[Solved] how to align group summary?

3 Answers 173 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.
Vit100
Top achievements
Rank 1
Vit100 asked on 03 Mar 2011, 09:15 PM
See attached picture.
Any idea how to to this?

code:
<telerik:RadGridView ItemsSource="{Binding Charges, Source={StaticResource vm}}" AutoGenerateColumns="False" 
                             ShowGroupPanel="True" ShowGroupFooters="True" AutoExpandGroups="True" ShowColumnFooters="True">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=TariffCategory}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=TariffType}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=RtlrContractIdentifier}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Consumption}">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction ResultFormatString="{}{0:c}" Caption="yy: " />
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.GroupDescriptors>
                <telerik:GroupDescriptor Member="TariffCategory" DisplayContent="xx"/>
            </telerik:RadGridView.GroupDescriptors>
        </telerik:RadGridView>

3 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 04 Mar 2011, 09:34 AM
Hello,

 You cannot do this in group headers - only in group footers similar to this demo

Best wishes,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Vit100
Top achievements
Rank 1
answered on 04 Mar 2011, 03:01 PM
How to remove aggregate function results then? how to do something like on this picture?
0
Accepted
Vlad
Telerik team
answered on 04 Mar 2011, 03:07 PM
Hi,

 You can set ShowHeaderAggregates to false for all GridViewGroupRows with style. You can check for example this thread for more info.

Regards,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Vit100
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Vit100
Top achievements
Rank 1
Share this question
or