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

Localizing GridViewGroupPanelText (refresh dynamically when culture changes)

3 Answers 166 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kalle
Top achievements
Rank 1
Kalle asked on 08 Aug 2013, 11:39 AM
Hi!

Is is possible to get GridViewGroupPanelText to refresh when application culture changes? I have created custom resx (GridViewResources.en.resx and GridViewResources.resx) and it's working on initialization but does not change when the culture is changed during application execution.
 
I have added ResourceManager to .xaml.cs like this:

public BillingView()
{
     
    LocalizationManager.Manager = new LocalizationManager()
    {
        ResourceManager = GridViewResources.ResourceManager
    };
 
    InitializeComponent();
}

Br,

Kalle

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 09 Aug 2013, 10:40 AM
Hi Kalle,

In order to apply localization for the GridView at runtime, you should recreate it. 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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
Kalle
Top achievements
Rank 1
answered on 03 Sep 2013, 10:00 AM
Hi!

I was hoping to change the localization dynamically without re-creating the component when the localization changes. 
I guess it can't be done at the moment.

I'm able to change all other strings dynamically (like RadGridView column headers) and that's why it would be nice to be able to change the localization of all parts of the component. If I recreate the GridView I guess I lose all data from it and would nee to fetch it again etc.

It would work for me if I could set/bind these localizations in XAML like for example column header:

<telerik:GridViewDataColumn Header="{lex:Loc Key=MyLocAssembly:Strings:MyLocString}" DataMemberBinding="{Binding ...}" Width="120"/>

Br,

Kalle
0
Dimitrina
Telerik team
answered on 03 Sep 2013, 02:40 PM
Hi Kalle,

Currently it is not possible to refresh all the localization strings without recreating the control.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
Tags
GridView
Asked by
Kalle
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Kalle
Top achievements
Rank 1
Share this question
or