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

footer text doesnt show

3 Answers 119 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Webster Velasco
Top achievements
Rank 2
Webster Velasco asked on 03 Mar 2010, 10:34 AM
hi

my footer text doesnt show on my aggregate column

here is the code:
                    <telerik:RadGrid ID="grdOrdini" DataSourceID="objDSOrd" runat="server" Width="99.7%" 
                        AutoGenerateColumns="False" PageSize="15" AllowSorting="True" AllowPaging="True" ShowHeader="true" 
                        GridLines="None" ShowStatusBar="true" AllowAutomaticUpdates="true" ShowFooter="True" > 
                        <PagerStyle Mode="NumericPages" AlwaysVisible="true"></PagerStyle> 
                        <FooterStyle Font-Bold="true" /> 
                        <MasterTableView DataSourceID="objDSOrd" DataKeyNames="CODICE" AllowMultiColumnSorting="True" 
                            Width="100%" EditMode="InPlace"
                            <Columns> 
                                <telerik:GridButtonColumn ConfirmText="Rimouvere dal Elenco degli ordini?" ButtonType="ImageButton" ImageUrl="~/img/DelCart.png" CommandName="Delete" Text="Rimouvi dal elenco" UniqueName="colDelete"
                                    <HeaderStyle Width="35px" /> 
                                </telerik:GridButtonColumn>                                
                                <telerik:GridEditCommandColumn EditImageUrl="~/img/Edit.gif" UniqueName="btnEdit" CancelText="Cancel" UpdateText="Save" EditText="Modifica"></telerik:GridEditCommandColumn>                           
                                <telerik:GridBoundColumn SortExpression="LISTINO" HeaderText="Listino" DataField="LISTINO" UniqueName="colLISTINO1" ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn SortExpression="LISTINO" HeaderText="Listino" DataField="LISTINO" UniqueName="colLISTINO" Visible="false"
                                </telerik:GridBoundColumn>                                                 
                                <telerik:GridBoundColumn SortExpression="DTORDINE" HeaderText="Data Ordine" DataField="DTORDINE" UniqueName="colDTORDINE" DataType="System.DateTime" DataFormatString="{0: dd/MM/yyyy}" ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn SortExpression="DTSCADENZA" HeaderText="Data Scadenza" DataField="DTSCADENZA" UniqueName="colDTSCADENZA" DataType="System.DateTime" DataFormatString="{0: dd/MM/yyyy}" ReadOnly="true"
                                </telerik:GridBoundColumn> 
                                <telerik:GridNumericColumn SortExpression="QUANTITA" HeaderText="Q.tà" DataField="QUANTITA" UniqueName="colQUANTITA"
                                </telerik:GridNumericColumn> 
                                <telerik:GridNumericColumn SortExpression="COSTOUNITARIO" HeaderText="Costo Unitario" DataField="COSTOUNITARIO" UniqueName="colCOSTOUNITARIO" DataType="System.Double" DataFormatString="{0:€ # ###.##}" ReadOnly="true"
                                </telerik:GridNumericColumn> 
                                <telerik:GridNumericColumn SortExpression="COSTOUNITARIO" HeaderText="Costo Unitario" DataField="COSTOUNITARIO" UniqueName="colCOSTOUNITARIO2" DataType="System.Double" Visible="false"
                                </telerik:GridNumericColumn>                                 
                                <telerik:GridNumericColumn SortExpression="SCONTO" HeaderText="Sconto %" DataField="SCONTO" UniqueName="colSCONTO" ReadOnly="true" DataType="System.Double" NumericType="Percent"
                                </telerik:GridNumericColumn> 
                                <telerik:GridBoundColumn  SortExpression="COSTONETTO" HeaderText="Costo Netto" DataField="COSTONETTO" UniqueName="colCOSTONETTO" DataType="System.Double" DataFormatString="{0:€ # ###.##}" ReadOnly="true" Aggregate="Sum" FooterText="Totale Netto: "
                                </telerik:GridBoundColumn >                                         
                            </Columns> 
                        </MasterTableView> 
                    </telerik:RadGrid> 

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 03 Mar 2010, 03:26 PM
Hello Webster,

Your code is working properly on my end. Please download the attached project and let me know whether it exhibits the same problem.

Regards,
Daniel
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Webster Velasco
Top achievements
Rank 2
answered on 04 Mar 2010, 09:32 AM
my problem is that the word "Totale Neto: " doesnt show
0
Accepted
Daniel
Telerik team
answered on 04 Mar 2010, 06:27 PM
Hello Webster,

Thank you for the clarification.

You should use FooterAggregateFormatString instead of FooterText. Please modify the last column as shown below:
<telerik:GridBoundColumn SortExpression="COSTONETTO" HeaderText="Costo Netto" DataField="Col"
    UniqueName="colCOSTONETTO" DataType="System.Double" DataFormatString="{0:€ # ###.##}"
    ReadOnly="true" Aggregate="Sum" FooterAggregateFormatString="Totale Netto: {0:€ # ###.##}">
</telerik:GridBoundColumn>

Best regards,
Daniel
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Webster Velasco
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Webster Velasco
Top achievements
Rank 2
Share this question
or