change culture/symbol through javascript

2 posts, 0 answers
  1. ConsumentenClaim
    ConsumentenClaim avatar
    14 posts
    Member since:
    Oct 2010

    Posted 08 Feb 2013 Link to this post


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

  2. Vasil
    Vasil avatar
    1604 posts

    Posted 11 Feb 2013 Link to this post


    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";

    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.
Back to Top