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

Applying .Format("{0:N}") to a ClientFooterTemplate in MVC

1 Answer 1588 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 2
Ian asked on 12 Jul 2013, 06:40 PM
In my attempts to right align, and apply a {0:N} format to the Sum on a ClientFooterTemplate  in MVC, I've got this far, but the format is not applied:

columns.Bound(e => e.BookValue).Title("Book Value ($)")
        .ClientFooterTemplate("<div class=aright>#=sum#</div>").Format("{0:N}")
It's right aligned now, but still the sum is showing 7 decimal places.

Should I be doing anything to the Aggregate instead of in the ClientFooterTemplate   ?                    

Ideas?           

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 15 Jul 2013, 07:34 AM
Hello Ian,

I think I already answered your question in your previous post, however please check this forum topic where its is discussed how to format and align values in ClientFooterTemplate:

http://www.kendoui.com/forums/mvc/grid/dynamically-update-client-footer.aspx
 
Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Ian
Top achievements
Rank 2
Answers by
Kiril Nikolov
Telerik team
Share this question
or