Hy,
I am having troubles to get a Radbutton working together with a javascript confirm dialog. The intention is, to show the confirm dialog prior to executing the delete command (which the radbutton represents). However, altough I am using the same Code, I already found in this forum, the button simply creates the postback, without even showing the dialog. The Code i use is:
For testing purposes, I tried a default Button, which works without any troubles:
Does anybody have any suggestions what to do?
If it is from interest:
I am using the Controls in a Webpart for a Sharepoint 2010 environment.
I am having troubles to get a Radbutton working together with a javascript confirm dialog. The intention is, to show the confirm dialog prior to executing the delete command (which the radbutton represents). However, altough I am using the same Code, I already found in this forum, the button simply creates the postback, without even showing the dialog. The Code i use is:
<telerik:RadButton ID="BtnDelete" runat="server" OnClientClick="javascript:if(!confirm('This action will delete the selected customer. Are you sure?')){return false;}" Skin="Outlook" Text="Löschen" onclick="BtnDelete_Click"></telerik:RadButton>For testing purposes, I tried a default Button, which works without any troubles:
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="return confirm('Are you sure to Continue?');" />Does anybody have any suggestions what to do?
If it is from interest:
I am using the Controls in a Webpart for a Sharepoint 2010 environment.