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

RadGridView and localization

1 Answer 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ralph
Top achievements
Rank 1
Ralph asked on 21 May 2013, 07:56 PM
I feel that I am missing something very simple.

Looking over the documentation am I correct in getting that Telerik does not provide translated strings for their controls but instead exposes LocalizationProviders and Dictionaries that we can then overload?

Is there no easier way to do this?  Can I not simply stick resx files somewhere? (running directory etc ...)

Any help would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Grzegorz Świeczkowski
Top achievements
Rank 1
answered on 22 May 2013, 08:15 AM
You can use resx in localization provider:

internal class MyRadGridLocalizationProvider : RadGridLocalizationProvider
    {
        public override string GetLocalizedString(string id)
        {
            switch (id)
            {
                case RadGridStringId.GroupingPanelDefaultMessage:
                    return resx.GridGroupingMessage;               // get from resx for current culture here.
            }
 
            return base.GetLocalizedString(id);
        }
    }
Tags
GridView
Asked by
Ralph
Top achievements
Rank 1
Answers by
Grzegorz Świeczkowski
Top achievements
Rank 1
Share this question
or