Column .Format("{0:#,0}") no longer working in a latest update

5 posts, 0 answers
  1. Fillip
    Fillip avatar
    10 posts
    Member since:
    Nov 2013

    Posted 06 May 2016 Link to this post

    When using the .NET MVC wrapper for our grids, we used to format our int columns like so:

    columns.Bound(r => r.FileSize).Title("File Size")
                      .HeaderHtmlAttributes(new { @title = "File Size" })
                      .Format("{0:#,0}")
                      .Width(120);

    When I upgraded from XX to XX, this no longer was working. I was able to use .Format("{0:n0}") and it worked fine. Kinda sad that this was depreciated seemingly unknowingly to developers. Did anyone else experience this break in code?

  2. Fillip
    Fillip avatar
    10 posts
    Member since:
    Nov 2013

    Posted 06 May 2016 in reply to Fillip Link to this post

    Also to note, our previous version of Kendo was 2015.1.425 and our upgraded version is 2016.1.412.

  3. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 11 May 2016 Link to this post

    Hello Fillip,

     

    I'm not able to re-create such issue locally. Here is a test page which uses the format in question. You can use the dropdownlist at the top, to switch to different versions. However, I'm getting the same result using any version.

     

    Regards,
    Rosen
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  4. Fillip
    Fillip avatar
    10 posts
    Member since:
    Nov 2013

    Posted 11 May 2016 in reply to Rosen Link to this post

    Hi Rosen,

    Thanks for the reply. I'm not sure if it matters, but I am initializing this grid via the .NET wrapper, not JS.     

    Thanks for your time!

    Fil

  5. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 12 May 2016 Link to this post

    Hello Fillip,

     

    There should be no difference if Grid is configured via the ASP.NET MVC wrapper or in JavaScript. As far as the Grid is using client-side rendering, the formatting is applied in the browser, thus the previous test page should be applicable. 

    Could you please provide a small runnable test project which to demonstrate the issue you are observing. This will allow us to further investigate the case.

     

    Regards,
    Rosen
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top