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

FooterAggregateFormatString thousands separator does not work?

1 Answer 586 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sharon
Top achievements
Rank 1
Sharon asked on 21 Feb 2013, 04:28 PM
The FooterAggregateFormatString does not work as expected. Should I be doing something different? I just want the footer amount to also display with 2 decimals (which is does) and thousand separator (which it does not). The column itself works fine with the formatstring specified.
Thanks for any help.
<telerik:GridNumericColumn DataField="a_loc_upr_booked" HeaderText="Cedant UPR" UniqueName="a_loc_upr_booked"
                    DataFormatString="{0:###,##0.00}" ItemStyle-HorizontalAlign="Right" Aggregate="Sum"  FooterAggregateFormatString="{0:###,##0.00}">
 </telerik:GridNumericColumn> 

1 Answer, 1 is accepted

Sort by
0
Sharon
Top achievements
Rank 1
answered on 21 Feb 2013, 07:00 PM

My apologies. Please disregard this question. Even though I specfily the format string in the markup, I do it again in the code behind which orverrides what is in the markup.
Thanks.

if (e.Item is GridFooterItem)
            {
                GridFooterItem footerItem = e.Item as GridFooterItem;
                footerItem["ic_contract"].Text = "Total: " + String.Format("{0:0.00}", totalOsr + totalIbnr + totalUpr);
            }


Tags
Grid
Asked by
Sharon
Top achievements
Rank 1
Answers by
Sharon
Top achievements
Rank 1
Share this question
or