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

Money YAxes Format Culture

1 Answer 57 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Demian Adolfo Raschkovan
Top achievements
Rank 1
Demian Adolfo Raschkovan asked on 13 Oct 2010, 08:57 AM
Hi, i'm using RadChart, and i have this:

RadChart1.DefaultView.ChartArea.AdditionalYAxes.Add(

 

new AxisY());

 

 

 

RadChart1.DefaultView.ChartArea.AdditionalYAxes[0].DefaultLabelFormat = "C";

My chart is working fine, but if i access from a PC from Spain i see this Axe in euro ("€") format, and if i access from England i see in Ponds format.

I need to force it to Pounds ("₤") format, how can i do it?

thank you for your help.

Demian.

 

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 14 Oct 2010, 09:42 AM
Hi Demian,

RadChart doesn't provide way to change culture. To change the current culture, you must assign a new CultureInfo object to the Thread.CurrentCulture property of the current thread as described in msdn - http://msdn.microsoft.com/en-us/library/cc853414(VS.95).aspx.
Here is how you can do it:
Add following code line in the constructor of App.xaml page:
Copy Code
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");
This will set currency format to British which is ("£").

Best wishes,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Demian Adolfo Raschkovan
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or