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

2 posts, 0 answers
  1. Ian
    Ian avatar
    73 posts
    Member since:
    Jun 2013

    Posted 12 Jul 2013 Link to this post

    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   ?                    

  2. Kiril Nikolov
    Kiril Nikolov avatar
    2598 posts

    Posted 15 Jul 2013 Link to this post

    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:
    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top