RadGridView Aggregate Functions

2 posts, 0 answers
  1. Pranama Moorthy
    Pranama Moorthy avatar
    26 posts
    Member since:
    Jun 2010

    Posted 27 Jun 2010 Link to this post

    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>

     



  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 28 Jun 2010 Link to this post

    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
  3. DevCraft banner
Back to Top