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

[Solved] GroupFooter not being displayed

3 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
D Kasdorf
Top achievements
Rank 1
D Kasdorf asked on 27 Nov 2009, 04:27 PM
I am trying to get aggregate totals to appear for each group that I have specified in my grid.  I get a grid footer total for each column but I don't get a group footer total.  The group footer does not appear at all for the specified groups.  I think I have set all required ShowGroupFooter and ShowGroupPanel settings.  I will attach the code for how I have setup my grid.  I was wondering if anyone can point out what I am doing wrong.

I am using version 2008.3.1105.20 of the Telerik.dll.

Thanks in advance for the help.

<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="false" CodeFile="timeOffSummaryReport.aspx.vb" Inherits="Applications_Vacation_timeOffSummaryReport" %>  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>  
 
<asp:Content ID="Content1" ContentPlaceHolderID="headSection" Runat="Server">  
</asp:Content>  
<asp:Content ID="Content2" ContentPlaceHolderID="actionbarSection" Runat="Server">  
</asp:Content>  
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">  
 
<div>  
<telerik:RadDatePicker runat="server" ID="dtDateFrom"></telerik:RadDatePicker>  
<telerik:RadDatePicker runat="server" ID="dtDateTo"></telerik:RadDatePicker>  
<asp:Button runat="server" ID="btnGo" Text="Go" />  
</div>  
<div>  
<telerik:RadGrid ShowGroupPanel="True" AutoGenerateColumns="False"   
        ID="grdTimeOffSummary" AllowSorting="True" ShowFooter="True" runat="server"   
        GridLines="None">  
<HeaderContextMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>  
</HeaderContextMenu>  
 
    <MasterTableView ShowGroupFooter="true" ShowFooter="true" AllowMultiColumnSorting="true">  
<RowIndicatorColumn>  
<HeaderStyle Width="20px"></HeaderStyle>  
</RowIndicatorColumn>  
 
<ExpandCollapseColumn>  
<HeaderStyle Width="20px"></HeaderStyle>  
</ExpandCollapseColumn>  
            <Columns>  
                <telerik:GridBoundColumn DataField="theDate" HeaderText="Date"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Vacation:" DataField="vacation" HeaderText="Vacation"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Personal:" DataField="personal" HeaderText="Personal"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Sick:" DataField="sick" HeaderText="Sick"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Compassionate:" DataField="compassionate" HeaderText="Compassionate"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Leave of Absence:" DataField="leaveOfAbsence" HeaderText="Leave Of Absence"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Parental Leave:" DataField="parentalLeave" HeaderText="Parental Leave"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Bereavement:" DataField="bereavement" HeaderText="Bereavement"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Education:" DataField="education" HeaderText="Education"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Jury Duty:" DataField="juryDuty" HeaderText="Jury Duty"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Banked Hours:" DataField="bankedHours" HeaderText="Banked Hours"></telerik:GridBoundColumn>  
            </Columns>  
            <GroupByExpressions>  
                <telerik:GridGroupByExpression>  
                    <GroupByFields>  
                        <telerik:GridGroupByField FieldName="employeeName" />  
                    </GroupByFields>  
                    <SelectFields>  
                        <telerik:GridGroupByField FieldName="employeeName" HeaderText="Employee" />  
                    </SelectFields>  
                </telerik:GridGroupByExpression>  
            </GroupByExpressions>  
    </MasterTableView>  
    <ClientSettings AllowDragToGroup="true" />  
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>  
</FilterMenu>  
</telerik:RadGrid>  
</div>  
 
</asp:Content> 

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 30 Nov 2009, 01:25 PM
Hello D Kasdorf,

I followed your scenario in order to replicate the issue but to no avail. Please find attached a simple working project which handles the desired functionality. Give it a try and see if it works for you.
 
Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
D Kasdorf
Top achievements
Rank 1
answered on 30 Nov 2009, 05:27 PM
Thank you for your input.  I was able to figure out my issue.

This issue was that the CSS was modified by our designers to make the text white in the group footers.  The footer for the entire grid which contains the aggregate number totals for the columns was made to have a dark background colour while the footer for the individual groups still had a white background.  This caused the text to be invisible on the screen which incorrectly led me to believe there was an issue with the group footer feature.

I modified the CSS to make the group footer background a darker colour which solved my issue.

Thanks for your response.
0
Pavlina
Telerik team
answered on 01 Dec 2009, 11:48 AM
Hello D Kasdorf,

I am glad to hear that the provided solution helped you to solve the problem.
Do not hesitate to contact us if other questions or problems arise.

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
D Kasdorf
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
D Kasdorf
Top achievements
Rank 1
Share this question
or