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

Workaround for auto refresh translation

5 Answers 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
FENWICK
Top achievements
Rank 1
FENWICK asked on 02 Sep 2011, 10:43 AM
Hello,

In your localisation exemples, to change the culture of the grid, either your re-instanciate a new grid, or you rebind the grid.
I am looking for a way to change the culture of a grid with a NotifyPrpertyChanged mecanism for exemple ?
I don't want to destory my grid to re-create the same just for change localized string ...
Do you have any solution ?

Thanks for your help
JC

5 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 02 Sep 2011, 12:32 PM
Hello Fenwick,

This could be achieved, but would take you more efforts and time . In general the elements you need localized can be retemplated (e.g. in Expression  Blend). This way any captions can be bound to the properties of your INotifyPropertyChanged object.

As said above - please have in mind this would involve a lot of heavy xaml.

Which elements of RadGridView do you need localized this way ?

Best wishes,
Pavel Pavlov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
FENWICK
Top achievements
Rank 1
answered on 05 Sep 2011, 05:25 PM
Thanks for your reply,

I was hoping you have another way ...
So I will do it for the group header bar, filter selector, and the raduplaod
But I am a little disappointed to do this...

Do you think this will change in any next release ?

All the best,
JC
0
Vanya Pavlova
Telerik team
answered on 06 Sep 2011, 09:41 AM
Hi Fenwick,

 


The recommended approach for runtime language change is demonstrated in our Localization demo. 
We are constantly working on many improvements in our products, however I am not quite sure what would be the case with the dynamic localization. For the time being I would recommend you to use the approach demonstrated above.  




Kind regards,
Vanya Pavlova
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
FENWICK
Top achievements
Rank 1
answered on 09 Sep 2011, 05:02 PM
Hello,

As a said before, create a new instance of the grid when localisation changed is NOT an option ...
It's not a good practice in Silverlight and you should not encourage to do this ...

I would make the templates as soon as I have some time

JC
0
Li
Top achievements
Rank 1
answered on 16 Jan 2012, 11:34 AM
Hello,

are there any templates which could be provided? I need to change the language of the localization of a gridview at runtime without creating an instance of a gridview, too.
Is it now planned to support dynamic localization in a further Telerik version?

Kind regards,
Li
Tags
GridView
Asked by
FENWICK
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
FENWICK
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Li
Top achievements
Rank 1
Share this question
or