Telerik Extensions for ASP.NET MVC

This help topic explains how to localize Telerik Grid for ASP.NET MVC.


All Telerik UI components need a ScriptRegistrar component in order to output their JavaScript objects and register their JavaScript files. The ScriptRegistrar component should be defined *after* all other UI components in the page. If you create the components on the client-side and do not use the MVC extensions, you need to manually register all requried JavaScript files. For further information check this help topic (Step 4 - Register Scripts)

Grid localization

To localize the grid follow these steps:
  1. Create a folder named App_GlobalResources in your application. The localization files will be stored in that folder:
    App Global Resources
  2. Check the App_GlobalResources folder in the installation location of Telerik Extensions for ASP.NET MVC. There you can find English, German and French localization files.

    If the required localization file exists copy it in the App_GlobalResources folder of your application.

    If the required localization file does not exist, you should create your own.

    The name of the localization file should be in the form GridLocalization.[culture].resx. For example: "GridLocalization.en-US.resx" or "".
    The easiest way to create a new localization file is to copy an existing one and rename it. Then use Visual Studio to edit the values. Here is how the default English localization looks like:

  3. Finally you need to set the UICulture. There are two ways to do that:
    • Set the UICulture attribute of the Page directive:
      <%@ Page Language="C#" UICulture="de-DE" Inherits="System.Web.Mvc.ViewPage" %>
    • Set the CurrentUICulture property of the CurrentThread inside your action method:
      public ActionResult Localization()
         System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE");
         return View();
      Here is how the final output should look like using the German localization: