This is a migrated thread and some comments may be shown as answers.

CHF Curreny

1 Answer 139 Views
NumericBox for HTML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Philipp
Top achievements
Rank 1
Philipp asked on 04 Jun 2014, 02:59 PM
I want to display "CHF" in the box and set the culture in the box options to "de-CH". I am getting a formatting with "fr. 0.00" which I guess stands for Francs? I would like to have "CHF" instead displayed like this "0.00 CHF"

Is this possible?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 05 Jun 2014, 08:23 AM
Hello Philipp,

You can modify the format applied by a certain culture by following the instructions provided in this help article:
Define Culture Information

In your specific case, to change the currency symbol, you can use the following piece of code:

var modCH = Telerik.Culture.getCultureInfo("de-CH");
modCH.numberFormat.currency.symbol = "CHF";
Telerik.Culture.setCultureInfo("de-CH", modCH);


Regards,
Tsvetina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
NumericBox for HTML
Asked by
Philipp
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or