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

Radnumeric TextBox currency

1 Answer 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mateusz
Top achievements
Rank 1
Mateusz asked on 06 Feb 2013, 11:00 AM
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;

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 11 Feb 2013, 09:46 AM
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.
Tags
General Discussions
Asked by
Mateusz
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or