Cancel event using RadAlert

4 posts, 1 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 23 May 2013 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 23 May 2013 Link to this post

    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.
  5. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 23 May 2013 Link to this post

    Thanks Guys

    Just what I needed.

    Andy
Back to Top