Money YAxes Format Culture

2 posts, 0 answers
  1. Demian Adolfo Raschkovan
    Demian Adolfo Raschkovan avatar
    1 posts
    Member since:
    Oct 2009

    Posted 13 Oct 2010 Link to this post

    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.

     

  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 14 Oct 2010 Link to this post

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