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

RadConfirm Yes No buttons

5 Answers 1150 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 03 Jan 2009, 08:06 PM
I'm using the latest build of Rad controls and the radconfirm dialog boxes.

I was looking at the following example:
http://demos.telerik.com/aspnet/Window/Examples/BrowserDialogBoxes/DefaultCS.aspx

and noticed that the confirm window in this example presents a Yes/No option, while my window shows Ok/Cancel buttons.

What do I have to do to provide the user with Yes/No buttons instead?

Thanks,

Rod



5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Jan 2009, 05:48 AM
Hi Rod,

one suggestion to achieve this is, by changing the dialog templates of the RadWindow, so that it is possible to assign Localized text of "Yes" and "No" to the buttons in the RadConfirm. Check out the link below for more information about changing the dialog templates.
Changing the Dialog Templates

Thanks,
Princy.
0
Rod
Top achievements
Rank 1
answered on 06 Jan 2009, 11:42 PM
Princy,

Is that the solution applied on the demo link I provided?
If not, was the demo built on a different version of RadConfirm?

0
Accepted
Georgi Tunev
Telerik team
answered on 07 Jan 2009, 09:08 AM
Hello Rod,

The demo that you refer to ( http://demos.telerik.com/aspnet/Window/Examples/BrowserDialogBoxes/DefaultCS.aspx) is the demo for RadWindow for ASP.NET while Princy posted a link from a help article about RadWindow for ASP.NET AJAX.

I am not sure what is the exact version of the control that you are using. In general, if you use RadWindow for ASP.NET (shown in your link), you should check this help article:
http://www.telerik.com/help/aspnet/window/localization.html

If you are using RadWindow for ASP.NET AJAX, I believe that the following KB article will be of help:
http://www.telerik.com/support/kb/aspnet-ajax/window/radwindow-for-asp-net-ajax-localization.aspx



Sincerely yours,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rod
Top achievements
Rank 1
answered on 07 Jan 2009, 08:24 PM
Thank you Georgi,

That worked perfectly.

One small note:

In the example provided, for those not familiar with Javascript, you need to remove the last comma inside the brackets:


..."Cancel" : "Cancel"

in order to not get a syntax error.
0
Georgi Tunev
Telerik team
answered on 08 Jan 2009, 09:57 AM
Hi Rod,

Indeed you are right - thank you very much for noticing it. I already fixed the article and updated your points as a small sign of our appreciation.


Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Rod
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Rod
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or