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

Localization

RadWindow and RadWindowManager provide a mechanism for easy localization of the command buttons' tooltips and the predefine dialogs' button texts. It is based on the native ASP.NET localization and thus requires that the new string is set to the corresponding property. You can do this either via a resource (.resx) files, or by hard-coding the values in the ASPX or code-behind.

To activate the localization you need to use the Localization property and declare the strings you wish to localize in it:

radwindow-localization

Providing values declaratively

The easiest way is to just set a string that you wish to use instead of the built-in ones, for example:

<telerik:RadWindow RenderMode="Lightweight" runat="server" ID="RadWindow1">
    <Localization Maximize="Maximize the RadWindow" Close="Close this popup" />
</telerik:RadWindow>

Or through the code-behind:

RadWindow1.Localization.Close = "Close this popup";
RadWindow1.Localization.Maximize = "Maximize the RadWindow";
RadWindow1.Localization.Close = "Close this popup";
RadWindow1.Localization.Maximize = "Maximize the RadWindow";

Using the ASP.NET resource files

You need to create the resource (.resx) files in the App_GlobalResources folder of your web application and name them accordingly: RadWindow..resx. Then you need to point the Localization property to read the resource files:

<telerik:RadWindow RenderMode="Lightweight" runat="server" ID="RadWindow1">
<Localization Maximize="<%$ Resources:RadWindow, Maximize %>" Minimize="<%$ Resources:RadWindow, Minimize %>"
        Close="<%$ Resources:RadWindow, Close %>" PinOff="<%$ Resources:RadWindow, PinOff %>"
        PinOn="<%$ Resources:RadWindow, PinOn %>" Reload="<%$ Resources:RadWindow,Reload %>"
        Restore="<%$ Resources:RadWindow, Restore%>" Cancel="<%$ Resources:RadWindow, Cancel %>"
        OK="<%$ Resources:RadWindow, OK %>" No="<%$ Resources:RadWindow, No %>" Yes="<%$ Resources:RadWindow, Yes %>" />
</telerik:RadWindow>

radwindow-localization-resource

Setting values through JavaScript

You can also set the localization strings through JavaScript as shown in this KB article.

See Also

In this article