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

GroupFooter not showing up, What gives?

3 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Zed
Top achievements
Rank 1
Zed asked on 09 Jul 2009, 05:38 PM
 <telerik:RadGrid ID="rgTickets" runat="server" AllowSorting="false" Width="97%" AutoGenerateColumns="False" ShowGroupFooter="true" ShowFooter="true"
                                    PageSize="20" AllowPaging="false" GridLines="None" ShowGroupPanel="True" OnPreRender="rgTickets_PreRender" OnItemDataBound="rgTickets_ItemDataBound"  OnNeedDataSource="rgTickets_NeedDataSource">
<ClientSettings AllowDragToGroup="True">
</ClientSettings>
<MasterTableView AllowMultiColumnSorting="true">
<Columns>
<telerik:GridBoundColumn DataField="Year" HeaderText="Year" SortExpression="Year" />
<telerik:GridBoundColumn DataField="Ordinal" HeaderText="Month" DataFormatString="{0:MMM}" SortExpression="Ordinal"/>
<telerik:GridBoundColumn DataField="CategoryName" HeaderText="Category" SortExpression="CategoryName"         />
<telerik:GridBoundColumn DataField="NetworkName" HeaderText="Network" SortExpression="NetworkName" />
<telerik:GridBoundColumn DataField="Created" FooterText="Total: " Aggregate="Sum" HeaderText="Created" SortExpression="Created"/>
<telerik:GridBoundColumn DataField="Closed" FooterText="Total: " Aggregate="Sum" HeaderText="Closed" SortExpression="Closed"/>
</Columns>
 <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
</MasterTableView>
</telerik:RadGrid>


I get a grid footer but no group footers, when I drag and drop to go grouping.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 10 Jul 2009, 08:12 AM
Hi Zed,

Please have in mind that you should add ShowGroupFooter property in MasterTableView. 
In order to show up the GridFooter you should change your code as shown bellow:
ASPX:
<telerik:RadGrid ID="rgTickets" runat="server" AllowSorting="false" Width="97%" AutoGenerateColumns="False" 
        ShowFooter="true" PageSize="20" AllowPaging="false" GridLines="None" ShowGroupPanel="True" 
        OnPreRender="rgTickets_PreRender" OnItemDataBound="rgTickets_ItemDataBound" OnNeedDataSource="rgTickets_NeedDataSource">  
        <ClientSettings AllowDragToGroup="True">  
        </ClientSettings> 
        <MasterTableView ShowGroupFooter="true" AllowMultiColumnSorting="true">  
            <Columns> 
                <telerik:GridBoundColumn DataField="Year" HeaderText="Year" SortExpression="Year" /> 
                <telerik:GridBoundColumn DataField="Ordinal" HeaderText="Month" DataFormatString="{0:MMM}" 
                    SortExpression="Ordinal" /> 
                <telerik:GridBoundColumn DataField="CategoryName" HeaderText="Category" SortExpression="CategoryName" /> 
                <telerik:GridBoundColumn DataField="NetworkName" HeaderText="Network" SortExpression="NetworkName" /> 
                <telerik:GridBoundColumn DataField="Created" FooterText="Total: " Aggregate="Sum" 
                    HeaderText="Created" SortExpression="Created" /> 
                <telerik:GridBoundColumn DataField="Closed" FooterText="Total: " Aggregate="Sum" 
                    HeaderText="Closed" SortExpression="Closed" /> 
            </Columns> 
            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle> 
        </MasterTableView> 
    </telerik:RadGrid> 

I hope this helps.

Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Zed
Top achievements
Rank 1
answered on 10 Jul 2009, 12:01 PM
No dice.  When I copy and paste the code block you suggested, the drag and drop grouping no longer works :( .  I guess the bigger question is "Are group footers and drag and drop group headers compatible?" 
0
Accepted
Pavlina
Telerik team
answered on 13 Jul 2009, 04:25 PM
Hello Zed,

Attached to this message is a simple runnable application that demonstrates the needed approach. Please give it a try and see i it works as expected.

I hope this helps.

Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Zed
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Zed
Top achievements
Rank 1
Share this question
or