Hi all!
Please help me! I have following element on aspx page:
<asp:button id="btnDelete" runat="server" OnClick="btnDelete_Click" OnClientClick="radconfirm('Are you sure you want to delete this listing?', confirmCallBackFn) " text="Delete" />
and I have RadWindowManager element
and javascript function
function confirmCallBackFn(arg)
{
return arg;
}
If I click on button then show confirm dialog but and event OnClick="btnDelete_Click" run too. Also I don't clicked on Yes or No button in confirm dialog.
What should I do to wait until user click on Button Yes or No?
Thanks!
Please help me! I have following element on aspx page:
<asp:button id="btnDelete" runat="server" OnClick="btnDelete_Click" OnClientClick="radconfirm('Are you sure you want to delete this listing?', confirmCallBackFn) " text="Delete" />
and I have RadWindowManager element
<telerik:RadWindowManager ID="windowManager" runat="server" Skin="Outlook"> |
<ConfirmTemplate> |
<div class="windowpopup radconfirm"> |
<div class="dialogtext"> {1} </div> |
<div> |
<a onclick="$find('{0}').callBack(true);" class="radwindowbutton" href="javascript:void(0);" > |
<span class="outerspan"> |
<span class="innerspan">Yes, I’m sure</span> |
</span> |
</a> |
<a onclick="$find('{0}').callBack(false);" class="radwindowbutton" href="javascript:void(0);"> |
<span class="outerspan"> |
<span class="innerspan">No, don’t delete</span> |
</span> |
</a> |
</div> |
</div> |
</ConfirmTemplate> |
</telerik:RadWindowManager> |
and javascript function
function confirmCallBackFn(arg)
{
return arg;
}
If I click on button then show confirm dialog but and event OnClick="btnDelete_Click" run too. Also I don't clicked on Yes or No button in confirm dialog.
What should I do to wait until user click on Button Yes or No?
Thanks!