Localization of the GridView and loading saved layouts

3 posts, 1 answers
  1. xclirion
    xclirion avatar
    23 posts
    Member since:
    May 2010

    Posted 19 Jul 2013 Link to this post

    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. Answer
    George
    Admin
    George avatar
    500 posts

    Posted 24 Jul 2013 Link to this post

    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 >>
  3. xclirion
    xclirion avatar
    23 posts
    Member since:
    May 2010

    Posted 24 Jul 2013 Link to this post

    Hi George,

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

    Thanks,
    Michael 
Back to Top