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

Cancel event using RadAlert

3 Answers 102 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 2
Andy Green asked on 23 May 2013, 11:03 AM
Hi

I'm using a RadAlert from the server side to pop up if there is an issue. I'm using the RadAlert because it gives me 1 button, if it pops up I want the OK click to stop processing the serverside event.

How can I achieve this.

Or if I have to use RadConfirm how do I hide the Close button.

Andy

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 May 2013, 12:50 PM
Hi Andy,

Try overriding the default CSS as follows to hide the close button of the RadConfirm.

CSS:
<style type="text/css">
    .RadWindow_Default .rwControlButtons a
    {
        display: none !important;
    }
</style>

Thanks,
Shinu.
0
Accepted
Marin Bratanov
Telerik team
answered on 23 May 2013, 03:08 PM
Hi guys,

This demo shows how to do prevent a click with the predefined dialogs of the RadWIndoManager and its description explains the case with its peculiarities and specifics in more detail: http://demos.telerik.com/aspnet-ajax/window/examples/confirmserverclicks/defaultcs.aspx.
You can, of course, use a RadAlert with the same logic. Hiding the second button in RadConfirm can be done with changing the dialog's template.

What I believe you are looking for is explained in this article: http://www.telerik.com/help/aspnet-ajax/window-using-radconfirm-in-server-code.html.

Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Andy Green
Top achievements
Rank 2
answered on 23 May 2013, 03:32 PM
Thanks Guys

Just what I needed.

Andy
Tags
Window
Asked by
Andy Green
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Marin Bratanov
Telerik team
Andy Green
Top achievements
Rank 2
Share this question
or