简体   繁体   English

Kendo UI货币格式

[英]Kendo UI Currency Formatting

How do I format a grid cell to use £s instead of the default $s? 如何格式化网格单元格而不是默认的$ s?

I have looked high and low but there is no answer. 我看起来很高,但没有答案。

I have: 我有:

{field: "price", title: "Price (£)", width: 95, format: "{0:c}"},

Which gives $0.00, but how do I get £0.00? 这给了0.00美元,但我怎么得到0.00英镑?

I have tried calling: 我试过打电话:

kendo.culture("en-gb");

Before the grid but it does nothing. 在网格之前,它什么也没做。

You should first make sure the English culture JavaScript file is included. 您应该首先确保包含英文文化JavaScript文件。 Then call kendo.culture("en-GB") (the casing is important). 然后调用kendo.culture("en-GB") (外壳很重要)。

More info can be found in the globalization help topic. 可以在全球化帮助主题中找到更多信息。

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

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