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

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

4 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fillip
Top achievements
Rank 1
Fillip asked on 07 May 2016, 12:35 AM

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?

4 Answers, 1 is accepted

Sort by
0
Fillip
Top achievements
Rank 1
answered on 07 May 2016, 12:38 AM

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

0
Rosen
Telerik team
answered on 11 May 2016, 06:50 AM

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!
 
0
Fillip
Top achievements
Rank 1
answered on 11 May 2016, 06:08 PM

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

0
Rosen
Telerik team
answered on 12 May 2016, 07:28 AM

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!
 
Tags
Grid
Asked by
Fillip
Top achievements
Rank 1
Answers by
Fillip
Top achievements
Rank 1
Rosen
Telerik team
Share this question
or