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

[Solved] number formatting according to system setting

1 Answer 97 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erik Damgaard
Top achievements
Rank 1
Erik Damgaard asked on 20 May 2013, 12:08 PM

 

 

 

 

<telerikGrid:DataGridTextColumn PropertyName="Equity" CellContentFormat="{}{0,0:N0}" />

 

RadDataGrid does not format numbers according to system setting. For ex, if In India if we have value 3000 will be formatted as 3,000 (comma as separator) but in Denmark it should be 3.000 (dot as separator). It is automatically done in Silverlight Grid but not in Windows 8.  
Is there some way to get this done?

Thanks  

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 22 May 2013, 11:58 AM
Hi Erik,

Thank you for contacting us.

Currently, the WinRT platform gets the UI Culture from the application settings (System.Globalization.CultureInfo.CurrentCulture). So, if you want to change the culture, you need to change it on a per application basis. In our next Q2 2013 Beta release we will expose a CultureService that will allow to customize the culture-aware settings on a per RadControl basis. At first, it will be available for RadCalendar and RadNumericBox, but in the future we intend to extend it to work with all of our culture-aware RadControls for Windows 8.

I hope this information is useful to you. Let me know if I can assist you in some other way.

Kind regards,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Grid for XAML
Asked by
Erik Damgaard
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or