Unplanned
Last Updated: 20 Jan 2020 13:51 by ADMIN
Timothy
Created on: 20 Nov 2013 23:23
Category: Globalization
Type: Feature Request
45
Update kendo.format to support number formatting for thousand/million etc using "," suffixes
As per the .NET format support shown here:
http://stackoverflow.com/questions/11731996/string-format-numbers-thousands-123k-millions-123m-billions-123b

And here:
http://msdn.microsoft.com/en-us/library/0c899ak8%28v=vs.100%29.aspx#SpecifierTh

123456789.ToString("#,##0,") will return "123,457".
123456789.ToString("#,##0,K") will return "123,457K".

kendo.format("{0:#,##0,", 123456789) will return "123,456,789".
kendo.format("{0:#,##0,K", 123456789) will return "123,456,789K".

As per the .NET standard, each trailing comma will round off 3 digits, so 123456789.ToString("#,##0,,M") will return "123M".
2 comments
Gabriel
Posted on: 22 May 2017 15:12
This would be incredible useful
Ed
Posted on: 27 Apr 2015 17:15
Also, the ability to format currency is needed. Related Kendo UI forum post:
http://www.telerik.com/forums/format-numbers-as-1-2m-instead-of-full-number