Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 797
imperium2335 Avatar asked Dec 30 '12 13:12

imperium2335


1 Answers

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.

like image 86
Atanas Korchev Avatar answered Oct 12 '22 14:10

Atanas Korchev