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

Radgrid GroupFooterTemplate colspan

1 Answer 271 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Padma
Top achievements
Rank 1
Padma asked on 05 Feb 2016, 05:29 AM

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>

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 09 Feb 2016, 07:52 AM
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
Tags
Grid
Asked by
Padma
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or