Workaround for auto refresh translation

6 posts, 0 answers
  1. FENWICK
    FENWICK avatar
    30 posts
    Member since:
    Jul 2010

    Posted 02 Sep 2011 Link to this post

    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

  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 02 Sep 2011 Link to this post

    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 >>

  3. FENWICK
    FENWICK avatar
    30 posts
    Member since:
    Jul 2010

    Posted 05 Sep 2011 Link to this post

    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
  4. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 06 Sep 2011 Link to this post

    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 >>

  5. FENWICK
    FENWICK avatar
    30 posts
    Member since:
    Jul 2010

    Posted 09 Sep 2011 Link to this post

    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
  6. Li
    Li avatar
    46 posts
    Member since:
    Feb 2011

    Posted 16 Jan 2012 Link to this post

    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
Back to Top