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".
Hi,
The ECMAScript Internationalization API has been available across browsers for some time now and supports this requirement out-of-the-box.
Integration with Kendo Templates is straightforward and easy. We have created a KB article with detailed examples and information how to achieve that:
https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/compact-number-formatting
Regards,
Eyup
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
This would be incredible useful
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