This is a migrated thread and some comments may be shown as answers.
Aggregate Footer Not Working
2 Answers 25 Views
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 16 Nov 2010, 02:54 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 16 Nov 2010, 04:58 PM
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.
0
Dan
Top achievements
Rank 1
answered on 16 Nov 2010, 08:54 PM
Removing that property did fix the problem.
Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Dan
Top achievements
Rank 1
Share this question
or