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

Footer Aggregates do not Display

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alfred Goldberg
Top achievements
Rank 1
Alfred Goldberg asked on 29 Apr 2010, 10:36 PM
I am using the following code but the aggregates do not show. I have looked at many examples and cannot discover what it the cause. Any help would be appreciated.

 <telerik:RadGrid ID="grdSalesPersonDetail" runat="server" GridLines="None" AllowPaging="False" 
            GroupingEnabled="true" AutoGenerateColumns="False" Skin="Office2007" ShowFooter="True" 
            OnItemCommand="grdSalesPersonDetail_ItemCommand" OnItemDataBound="grdSalesPersonDetail_ItemDataBound" 
            OnSelectedIndexChanged="grdSalesPersonDetail_SelectedIndexChanged" OnNeedDataSource="grdSalesPersonDetail_NeedDataSource">  
            <MasterTableView DataKeyNames="DLRSTAFF_ID" TableLayout="Fixed">  
                <Columns> 
                 <telerik:GridTemplateColumn DataField="DLRSTAFF_Name" HeaderText="Name">  
                        <ItemTemplate> 
                            <asp:LinkButton ID="lnkDealNum" runat="server" CommandName="OpenSalesPerson" CommandArgument='<%# Eval("DLRSTAFF_Name") %>' 
                                Text='<%#Eval("DLRSTAFF_Name") %>' /> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridNumericColumn DataField="Sales_Gross" HeaderText="Sales Gross" DataType="System.Decimal" 
                        NumericType="Currency" SortExpression="Sales_Gross" UniqueName="Sales_Gross" 
                        Aggregate="Count" /> 
                    <telerik:GridNumericColumn DataField="Avg_Sales_Gross" HeaderText="Avg Sales Gross" NumericType="Currency" 
                        Aggregate="Count" DataType="System.Decimal" /> 
                    <telerik:GridNumericColumn DataField="FI_Gross" HeaderText="FI Gross" Aggregate="Count" NumericType="Currency" 
                        DataType="System.Decimal" /> 
                    <telerik:GridNumericColumn DataField="Avg_FI_Gross" HeaderText="Avg FI Gross" Aggregate="Count" NumericType="Currency" 
                        DataType="System.Decimal" /> 
                    <telerik:GridNumericColumn DataField="Total_Gross" HeaderText="Total Gross" Aggregate="Count" NumericType="Currency" 
                        DataType="System.Decimal" /> 
                    <telerik:GridNumericColumn DataField="Avg_Total_Gross" HeaderText="Avg Total Gross" NumericType="Currency" 
                        Aggregate="Count" DataType="System.Decimal" /> 
                </Columns> 
                <HeaderStyle HorizontalAlign="Center" /> 
            </MasterTableView> 
        </telerik:RadGrid> 

Alfred Goldberg

1 Answer, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 30 Apr 2010, 09:32 PM
Looks like you are missing your ShowFooter="true" in your MasterTableView.

Add that and I think you will be good to go.

<MasterTableView DataKeyNames="DLRSTAFF_ID" TableLayout="Fixed" ShowFooter="true">   

Tags
Grid
Asked by
Alfred Goldberg
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Share this question
or