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

RadGridView Aggregate Functions

1 Answer 145 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pranama Moorthy
Top achievements
Rank 1
Pranama Moorthy asked on 28 Jun 2010, 04:51 AM
Hi telerik Team,
                            I have an Aggregate function on one of the data columns of a grid, but when the grid loads the header summation is not shown, but when I drag and group by the column the header aggregate is shown. Could you please advice what I am doing wrong? My Header aggregate function is as below, and by default when the grid loads.. I want the grid to be grouped by region, and the total exceptions shown on the header..

<

 

telerikGridView:RadGridView Margin="0,8,0,0" AutoGenerateColumns="False" DataContext="{Binding Source={StaticResource ExceptionDetailSource}}" ItemsSource="{Binding ExceptionDetail_Collection}"

 

 

ShowGroupFooters="True" ShowColumnFooters="False" x:Name="ExceptionGrid" SelectionMode="Multiple">

 

 

 

 

<telerikGridView:RadGridView.GroupDescriptors>

 

 

 

<telerikData:GroupDescriptor Member="Region"/>

 

 

 

</telerikGridView:RadGridView.GroupDescriptors>

 

 

 

<telerikGridView:RadGridView.ChildTableDefinitions>

 

 

 

<telerikGridView:GridViewTableDefinition/>

 

 

 

</telerikGridView:RadGridView.ChildTableDefinitions>

 

 

 

<!--This is where the Exceptions list starts-->

 

 

 

<telerikGridView:RadGridView.Columns>

 

 

 

<telerikGridView:GridViewSelectColumn Header="Adjust" IsVisible="True"/>

 

 

 

<telerikGridView:GridViewDataColumn Header="Region" DataMemberBinding="{Binding Region}" IsVisible="True"/>

 

 

 

<telerikGridView:GridViewDataColumn Header="Exception ID" DataMemberBinding="{Binding Exception_ID}" IsReadOnly="True">

 

 

 

<telerikGridView:GridViewDataColumn.AggregateFunctions>

 

 

 

<telerikData:CountFunction ResultFormatString="{} Total Exceptions:{0} "/>

 

 

 

</telerikGridView:GridViewDataColumn.AggregateFunctions>

 

 

 

</telerikGridView:GridViewDataColumn>

 



1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Jun 2010, 12:13 PM
Hello Pranama Moorthy,

I have tried to reproduce the issue but everything works as expected and the aggregate function is shown in the group header when loading the application. I am sending you a sample project so that you can use it as a reference. In case there is some kind of misunderstanding according to your requirements, please give us more details or provide us with a sample project.

 

Best wishes,
Maya
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
Pranama Moorthy
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or