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

Culture change at runtime

3 Answers 209 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ludwig
Top achievements
Rank 1
Ludwig asked on 11 May 2011, 02:31 PM
I have a gridview, with a column that is a date. It displays the date in the format of the current culture.
However, at runtime the culture can change.
How can I let the gridview adapt to this new culture, so that the dates are formatted in the new culture format?

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 17 May 2011, 09:00 AM
Hello Ludwig,

At the moment the you should reload the whole grid when the culture is changed. We will be investigating if we can modify the grid in such a way to support automatic refresh. 

What you can try is to place the grid in a UserControl and when the culture is changed replace the current instance of this control with a new one. 

Hope this helps.


Greetings,
Milan
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
0
Martin
Top achievements
Rank 1
answered on 18 Jul 2011, 07:15 AM
Hello Milan,

do you know when this feature will be added?

Regards Martin
0
Milan
Telerik team
answered on 21 Jul 2011, 09:31 AM
Hello Martin,

  I am afraid that RadGridView or any other control will not be able to refresh automatically when the  culture is changed.

There is one property of FrameworkElement called Language that should be used in scenarios where the culture is changed. At the moment, if you set this property the grid will not refresh its UI and we are  investigating how we can allow this. 

Regards,
Milan
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Ludwig
Top achievements
Rank 1
Answers by
Milan
Telerik team
Martin
Top achievements
Rank 1
Share this question
or