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

It is possible to increase the size of the footer column without increasing the other columns of RadGrid?

4 Answers 256 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 13 Mar 2014, 02:15 PM
hello friends,

is there any way to increase the size of the footer text for the same 
do not break the line? Something similar to colspan attribute of html ... 

Thank you!

Code:

<telerik:RadGrid ID="rgTeste" runat="server" AutoGenerateColumns="false" ShowFooter="true"
        AllowPaging="true" PageSize="10" AllowSorting="true" AllowFilteringByColumn="False"
        EnableTheming="false" Width="99.7%" OnNeedDataSource="rgTeste_NeedDataSource" 
        OnSelectedIndexChanged="rgPedidosPessoa_SelectedIndexChanged" OnItemDataBound="rgTeste_ItemDataBound">
        <ClientSettings AllowGroupExpandCollapse="false" ReorderColumnsOnClient="false" AllowDragToGroup="false"
                        AllowColumnsReorder="false" EnablePostBackOnRowClick="true"  >
            <Selecting AllowRowSelect="true" />

            <ClientEvents OnRowContextMenu="RowContextMenuRgPedidosPessoa" />
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="false" NoMasterRecordsText="Sem informações."
            Width="100%" TableLayout="Fixed" DataKeyNames="codigoPessoa,nome">
            <Columns>                  
               <telerik:GridBoundColumn DataField="quantidade" HeaderText="Qtde" HeaderStyle-Width="6%" Aggregate="Sum" 
               FooterText="Total: " HeaderTooltip="Quantidade">//                    
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="adress" HeaderText="Código SG." HeaderStyle-Width="10%" HeaderTooltip="Código sistema gestão"/>               
               <telerik:GridBoundColumn DataField="total" HeaderText="Total" HeaderStyle-Width="10%" DataFormatString="{0:N}" Aggregate="Sum" 
               FooterAggregateFormatString="Total: {0:N}" FooterStyle-Width="400px"/>//                                                            
            </Columns>                                    
        </MasterTableView>        
</telerik:RadGrid>

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Mar 2014, 10:03 AM
Hi Diego,

I guess you want to set the text size of footer of a column. You can use the FooterStyle-Font-Size of the column, it will not affect any other column.

ASPX:
<telerik:GridBoundColumn DataField="Total" HeaderText="Total" UniqueName="Total" Aggregate="Sum" FooterAggregateFormatString="Total: {0:N}" FooterStyle-Font-Size="X-Large">
</telerik:GridBoundColumn>

Thanks,
Shinu
0
Diego
Top achievements
Rank 1
answered on 14 Mar 2014, 12:42 PM
Thanks by the tip ... it's increased the font size but still breaking the line ...
0
Diego
Top achievements
Rank 1
answered on 19 Mar 2014, 01:59 PM
Any idea? I need somebody help... (Beatles) rsrsrs
thanks....
0
Viktor Tachev
Telerik team
answered on 24 Mar 2014, 10:08 AM
Hello Diego,

Note that modifying the colspan of the cell holding the aggregate value in the footer would break the layout of the grid.

If you would like the text in the footer to fit on one row it is recommended that you modify the width of the column. This way you would also ensure that the aggregate is displayed under the appropriate column.

Regards,
Viktor Tachev
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
Grid
Asked by
Diego
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Diego
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or