heya.. trying to determine how to use a radcofirm popup to confirm deletion of a record from a formview.
this works fine as a standard confirm...
- OnClientClick="return confirm('Are you certain you want to delete this?'); "
this does not
- OnClick="radconfirm('Are you sure?');">
return the following error:
'radconfirm' is not a member of 'ASP.ctrls_ctrlName_ascx'.
I have used the following as a guideline http://www.telerik.com/demos/aspnet/prometheus/Window/Examples/BrowserDialogBoxes/DefaultCS.aspx
My sloppy code:
(note that the sample buttons at the bottom work fine in my page)
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" |
Text="Delete" OnClick="radconfirm('Are you sure?'); return false;"></asp:LinkButton> |
<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New" |
Text="New"> |
</asp:LinkButton> |
</ItemTemplate> |
</asp:FormView> |
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Sunset"> |
</telerik:RadWindowManager> |
|
<button style="width: 150px; margin-bottom: 3px;" onclick = "radconfirm('Are you sure?');" class="button">show CONFIRM BOX</button><br/> |