简体   繁体   中英

Kendo UI Currency Formatting

How do I format a grid cell to use £s instead of the default $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?

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. Then call kendo.culture("en-GB") (the casing is important).

More info can be found in the globalization help topic.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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