Dynamic change of resources not working fully

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    496 posts
    Member since:
    Aug 2012

    Posted 21 Nov 2019 Link to this post


    I'm trying to dynamically change the resources of the control, in order to change the language of the application without restarting.

    First, it's a shame that not all of your controls work with just setting "UseDynamicLocalization = True" and changing the "LocalizationManager.Manager.Culture" property. It complicates the work of application developer...


    Back to the RadMap. I've implemented code to reload the template of the control after changing the resources and it doesn't work correctly. Almost all of the control changes the texts, excepted for the "layout/mode selection" of all the providers, as you can see with the screenshots: after changing the texts, these ones remains in English.

    My code for the loading of the resources is correct because it works for all the other part of the application (and of the map). If I close the application and then starts it again, the texts are in French.


    My application is using a custom localization manager, so the texts can be loaded from text files.

  2. Vladimir Stoyanov
    Vladimir Stoyanov avatar
    657 posts

    Posted 26 Nov 2019 Link to this post

    Hello Patrick,

    The commands for the providers are localized when the corresponding provider is created. With this in mind, in order to localize them dynamically, you can create a new provider and assign it to the Provider property of the RadMap. Please, give this approach a try and let me know how it goes. 

    Vladimir Stoyanov
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top