New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


To localize the RadDataPager control you can use global resource files or directly change the values of each named field-property:

<telerik:RadDataPager RenderMode="Lightweight" runat="server" ID="RadDataPager1" PagedControlID="RadListView1">
        <telerik:RadDataPagerButtonField FieldType="FirstPrev" FirstButtonText="Custom text" />

RadDataPager's default Culture is taken from the page's CurrentUICulture .

Global Resource Files

The primary means for localization in ASP.NET is to use resource files. Resource files are simple XML files that can be easily edited and transferred to other applications. You can use resource files to change the default (English) localization for RadDataPager that is stored in the Telerik.Web.UI assembly.

To create a global resource file to localize the pager:

  1. Create the App_GlobalResources folder in the root of your web application.

  2. Copy the default resource RadDataPager.Main.resx file into it. This file can be found in the App_GlobalResources folder of the directory where you installed the Telerik controls.

  3. Make a copy of the file and rename the copy so that its name contains the Culture Identifier. The resource files used by RadDataPager follow a strict naming convention: RadDataPager.Main..resx

The Culture Identifier consists of a language code followed by a dash and the country code. Example: "en-US", "fr-CA", "bg-BG" and so on.

For example Both files should be present in the App_GlobalResources folder: RadDataPager GlobalResources

  1. Edit the strings using the Visual Studio editor or your favorite text editor. Customize strings just as you would set the Localization property. RadDataPager Localize text

Make sure that the ReservedResource message is preserved. It is used for identification purposes and is never displayed.

You can now switch the pager so that it uses your new resource file by setting the active culture: RadDataPager Culture

In this article