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

    Hi,

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

  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 11 Feb 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top