Radgrid GroupFooterTemplate colspan

2 posts, 0 answers
  1. Padma
    Padma avatar
    1 posts
    Member since:
    May 2015

    Posted 04 Feb Link to this post

    When I tried to add 4 group footers in the radgrid, I see that colspan="4" is added automatically, I want the footers to align with the columns. 

     <FooterStyle Font-Bold="true" />
                                                        <GroupFooterTemplate>
                                                                This is a Footer - Total Cases
                                                                <asp:Label ID="Label8" runat="server" />

                                                            </td>
                                                            <td colspan="2">
                                                                This is a Footer - Adjustment
                                                                 <asp:Label ID="Label1" runat="server" />
                                                            </td>
                                                            <td>
                                                                This is a Footer - OrderTotal
                                                                 <asp:Label ID="Label2" runat="server" />
                                                            
                                                        </GroupFooterTemplate>
                                                        <Columns>

     

  2. Eyup
    Admin
    Eyup avatar
    3007 posts

    Posted 09 Feb Link to this post

    Hi Padma,

    If you want your footer cells to align with column data cells, please remove the GroupFooterTemplate and modify the GridGroupFooterItem cells using the ItemCreated or ItemDataBound event handlers:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/control-lifecycle/differences-between-itemcreated-and-itemdatabound-

    The cells have Text property, which can be set to your desired value.

    Regards,
    Eyup
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top