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

Localization of the GridView and loading saved layouts

2 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
xclirion
Top achievements
Rank 1
xclirion asked on 19 Jul 2013, 12:34 PM
Hi,

we have a localization problem. We have done the localization of the grid view. But now we have the following behaviour: The user starts the application the first language. As requested by the customer, the layout of the grid will be automatically saved. Now the user changes the language. The application starts and loads the layout, and everything is translated into the new language except the columns, because they are read from the layout file in the old language.

What is the right strategy to deal with this problem?

Thanks,
Michael

2 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 24 Jul 2013, 07:52 AM
Hi Michael,

Thank you for writing.

The localization provider is capable of translating only text which is defined by RadControls themselves which means that text such as "Click here to add a new row" can be translated by the localization provider. However, the columns text cannot because they are created dynamically and there is no way for the localization provider to know how many and what columns the grid have. In this case I can suggest you to subscribe to the LayoutLoaded event of the grid, check what is the current language of the application and the layout file and translate the columns manually if needed.

If you have any other questions or comments, please let me know.
 
Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
xclirion
Top achievements
Rank 1
answered on 24 Jul 2013, 08:15 AM
Hi George,

we have just changed our code to use the LayoutLoaded-Event and it works finde.

Thanks,
Michael 
Tags
GridView
Asked by
xclirion
Top achievements
Rank 1
Answers by
George
Telerik team
xclirion
Top achievements
Rank 1
Share this question
or