简体   繁体   English

Kendo UI-自定义数字格式在2015.3.1111-> 2016.1.412之间的更改

[英]Kendo UI - Custom Number Formatting Change between 2015.3.1111 -> 2016.1.412

Recently upgraded to Kendo UI version 2016.1.412 from version 2015.3.1111 , and have noticed a fundamental change in the output of Kendo UI custom number formats. 最近从2015.3.1111版本升级到Kendo UI版本2016.1.412 ,并且注意到Kendo UI自定义数字格式的输出发生了根本变化。 My issue is best shown by example: 我的问题最好通过示例显示:

kendo.toString(245000.45, "#,###;(#,###);-") // returns 245,000 (desired) with v2015.3.1111
kendo.toString(245000.45, "#,###;(#,###);-") // returns 2,45000 with v2016.1.412

I've tried various options, some of which come close but still not correct: 我尝试了各种选择,其中有些接近但仍然不正确:

kendo.toString(245000.45, "#,###.##;(#,###.##);-") // returns 245,000.45, want 245,000
kendo.toString(245000.45, "#,###.00;(#,###.00);-") // returns 245,000.45, want 245,000

Online examples : 在线示例:

2015.3.1111 -> http://dojo.telerik.com/efAMi/2 2015.3.1111-> http://dojo.telerik.com/efAMi/2

2016.1.412 -> http://dojo.telerik.com/UjiSe/3 2016.1.412-> http://dojo.telerik.com/UjiSe/3

Does anyone have any clues as to what I'm either doing wrong, or what's changed? 有人对我做错了什么或更改了什么有任何线索吗? The online documentation doesn't give me much to go on. 在线文档并没有给我太多帮助。

好的,这似乎是kendo 2016.Q1框架中的一个问题

kendo.toString(245000.45, "#,###,###,###,###;(#,###,###,###,###);-") // returns 245,000

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM