Refresh GridView After Language Change
Environment
Product Version | 2022.2.621 |
Product | RadGridView for WPF |
Description
How to refresh the UI of RadGridView when the current culture is changed, thus changing the language.
Solution
RadGridView doesn't support dynamic localization. To get the desired effect, the GridView's ControlTemplate should be reset after the current culture changed.
LocalizationManager.Manager.Culture = newCulture;
var template = this.gridView.Template;
this.gridView.Template = null;
this.gridView.Template = template;