RadGridView and localization

2 posts, 0 answers
  1. Ralph
    Ralph avatar
    1 posts
    Member since:
    Mar 2011

    Posted 21 May 2013 Link to this post

    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.
  2. Grzegorz Świeczkowski
    Grzegorz  Świeczkowski  avatar
    1 posts
    Member since:
    Jan 2010

    Posted 22 May 2013 Link to this post

    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);
            }
        }
Back to Top