This is a migrated thread and some comments may be shown as answers.

Easy way to change Ok/Cancel to Yes/No

1 Answer 166 Views
Window
This is a migrated thread and some comments may be shown as answers.
Atiq Ur Rehman
Top achievements
Rank 1
Atiq Ur Rehman asked on 04 Aug 2008, 02:49 PM
Hi,

I use radConfirm for few confirmations, What is the easiest way to just change the text on radConfirm from OK/Cancel to Yes/no?

Thanks
Atiq

1 Answer, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 04 Aug 2008, 02:55 PM
Hello Atiq,

Currently, you can change the localization strings of the RadWindow for ASP.NET AJAX control by using the following Javascript code that should be placed after the RadWindow / RadWindowManager declaration:

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"
    "Yes" : "Yes"
    "No" : "No"   
}; 

This being said, in order to localize the radconfirm in the desired manner, you should change the OK and Cancel values to the desired ones.

If you need further assistance, do contact us again.


Best wishes,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Atiq Ur Rehman
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or