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

AggregateFunctions with drag column

1 Answer 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jimmy
Top achievements
Rank 1
Jimmy asked on 06 May 2016, 06:51 AM

i am using RadGridView to display data. in the UI design, I also apply AggregateFunctions for some columns (see below). But when I drag one column for grouping, the Aggregate result also show in the grid which looked not good. Any way to prevent when I manually drag columns for grouping?

 <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction ResultFormatString="{}{0:N4}"/>
                    </telerik:GridViewDataColumn.AggregateFunctions>

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 10 May 2016, 03:58 AM
Hi Jimmy,

You can achieve the desired behavior by using the following style:
<Style TargetType="telerik:GridViewGroupRow">
            <Setter Property="ShowHeaderAggregates" Value="False"></Setter>
        </Style>


Regards,
Yoan
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Jimmy
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or