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

Show radconfirm

2 Answers 86 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 27 Sep 2012, 12:36 PM
How to show radconfirm with RadButton?On clicking the button it simply disappears..

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 27 Sep 2012, 12:46 PM
Hi Tina,

This online demo shows how to achieve this: http://demos.telerik.com/aspnet-ajax/button/examples/confirm/defaultcs.aspx.

The following resources can also be helpful in working with the RadConfirm:
http://www.telerik.com/help/aspnet-ajax/window-dialogs-confirm.html
http://demos.telerik.com/aspnet-ajax/window/examples/confirmserverclicks/defaultcs.aspx


Kind regards,
Marin Bratanov
the Telerik team
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
Shinu
Top achievements
Rank 2
answered on 27 Sep 2012, 12:49 PM
Hi,

Try the following code to show a confirm message in OnClientClicked event of RadButton.
aspx:
<telerik:RadButton AutoPostBack="false" ID="RadButton1" runat="server" Text="Show confirm"  OnClientClicked="OnClientClicked">
</telerik:RadButton>

<script type="text/javascript">
    function OnClientClicked(sender, args) {
        window.radconfirm("Are you sure?");
    }
</script>

Thanks,
Shinu.
Tags
Window
Asked by
Tina
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Shinu
Top achievements
Rank 2
Share this question
or