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

change culture/symbol through javascript

1 Answer 55 Views
Input
This is a migrated thread and some comments may be shown as answers.
ConsumentenClaim
Top achievements
Rank 1
ConsumentenClaim asked on 09 Feb 2013, 05:41 AM
Hi,

Is it possible to change the RadNumericTextBox currency symbol through javascript?

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 11 Feb 2013, 09:36 AM
Hello,

The culture currency symbol is used ServerSide to build the Positive and Negative patterns, that are serialized and used ClientSide later. You can change them using this JavaScript:

$find("ClientIDOfYourNumericTextBox").get_numberFormat().PositivePattern = "€ n";
$find("ClientIDOfYourNumericTextBox").get_numberFormat().NegativePattern = "€ -n";

Regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Input
Asked by
ConsumentenClaim
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or