Changing the localization of RadWindow for ASP.NET AJAX
|
Article relates to
|
RadWindow for ASP.NET AJAX
|
|
Created by
|
Georgi Tunev, Telerik
|
|
Last modified
|
July 11, 2011
|
|
Last modified by
|
Marin Bratanov, Telerik
|
HOW-TO
Localize RadWindow for ASP.NET AJAX.

SOLUTION
NOTE: Since Q2 2010 the RadWindow and RadWindowManager provide a Localization property that can be set declaratively, through the code-behind and via a recource file. For more information see this online demo and this help article.
You can change the localization strings of the control by using the following Javascript code that should be placed after the RadWindow / RadWindowManager declaration - for example you can place it before the closing </form> tag:
| Telerik.Web.UI.RadWindowUtils.Localization = |
| { |
| "Close" : "Close", |
| "Minimize" : "Minimize", |
| "Maximize" : "Maximize", |
| "Reload" : "Reload", |
| "PinOn" : "Pin on", |
| "PinOff" : "Pin off", |
| "Restore" : "Restore", |
| "OK" : "OK", |
"Cancel" : "Cancel"
|
| |
| |
| }; |
In the code above, the first string on every line in the function, is the button's command and the second is the localized string that you should change.
Comments
If you'd like to comment on this KB
article, please, send us a
Support Ticket.
Thank you!
Please
Sign In
to rate this article.