Radnumeric TextBox currency

2 posts, 0 answers
  1. Mateusz
    Mateusz avatar
    14 posts
    Member since:
    Aug 2012

    Posted 06 Feb 2013 Link to this post

    Is it possible to change the currency despite the cuture(only currency). Becouse i have an app that changes the language depending on culture info but i wan`t to keep the same currency.

    When i change only the currency it doesn`t work:

    CultureInfo currentCulture = new CultureInfo(System.Threading.Thread.CurrentThread.CurrentCulture.LCID);
    currentCulture.NumberFormat.CurrencySymbol = "zł";
    System.Threading.Thread.CurrentThread.CurrentCulture = currentCulture;
  2. Eyup
    Admin
    Eyup avatar
    4014 posts

    Posted 11 Feb 2013 Link to this post

    Hi Mateusz,

    The provided approach works as expected on my end:
    protected void Page_Load(object sender, EventArgs e)
    {
        CultureInfo currentCulture = new CultureInfo(Thread.CurrentThread.CurrentCulture.LCID);
        currentCulture.NumberFormat.CurrencySymbol = "zł";
        Thread.CurrentThread.CurrentCulture = currentCulture;
    }

    Can you share with which RadControl do you face this issue? Please provide us the exact steps to reproduce the described behavior.

    Regards,
    Eyup
    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