Aggregate Footer Not Working

3 posts, 1 answers
  1. Chris May IT Team Lead
    Chris May IT Team Lead avatar
    31 posts
    Member since:
    Nov 2009

    Posted 16 Nov 2010 Link to this post

    I have this radgrid that otherwise works as expected.

    For the first time I've tried using a footer with aggregate functions.  I really only care about Sum of the last column, but when that didn't work I tried different agg functions on each column as you can see below and they all have the same result, which is to display "Sum : " in the footer (or whatever agg function I selected).

    I'm using a datasource that is a list of business objects.  The property ValueChange is a reaonly Decimal.

    Below is my mark up and I'm attaching a screen shot.

    Can you think of why this might not work?

    <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" DataSourceID="dsTransactionDetails" GridLines="None"
        Skin="WebBlue" Width="812px">
        <MasterTableView DataSourceID="dsTransactionDetails" AllowCustomPaging="True" 
            ShowFooter="True" >
            <Columns>
                <telerik:GridBoundColumn DataField="PhaseCode" HeaderText="PhaseCode" SortExpression="PhaseCode"
                    UniqueName="Phase Code" Aggregate="None">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CategoryCode" HeaderText="CategoryCode" SortExpression="CategoryCode"
                    UniqueName="Category Code" Aggregate="Count">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="OldValue" DataType="System.Decimal" HeaderText="Old Value"
                    SortExpression="OldValue" UniqueName="OldValue" Aggregate="Min">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="NewValue" DataType="System.Decimal" HeaderText="New Value"
                    SortExpression="NewValue" UniqueName="NewValue"  Aggregate="Max">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ValueChange" DataType="System.Decimal" HeaderText="Change"
                    SortExpression="ValueChange" UniqueName="ValueChange" Aggregate="Sum"
                </telerik:GridBoundColumn>
            </Columns>
            </MasterTableView>            
    </telerik:RadGrid>
  2. Answer
    Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 16 Nov 2010 Link to this post

    Hello Patrick,

    To resolve the problem you should remove AllowCustomPaging property from the MasterTableView. However, I am sending you a simple test project that is working as expected. Examine it and let me know if you need additional assistance.

    I hope this helps.

    Greetings,
    Pavlina
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris May IT Team Lead
    Chris May IT Team Lead avatar
    31 posts
    Member since:
    Nov 2009

    Posted 16 Nov 2010 Link to this post

    Removing that property did fix the problem.
Back to Top