I'm trying to use the radalert instead of the browser confirm alert. Normally I would put this in the OnClientClick: return confirm('Are you sure you want to delete this file?');. But this does not work with radalert. I tried the below but nothing worked, mostly they just show the confirm window and it disappears after a second then the page continues to post without me even answering the confirm question. How do I achieve this?
OnClientClick="return radconfirm('Are you sure you want to delete this file?', confirmCallBackFn);"
OnClientClick="radconfirm('Are you sure you want to delete this file?', confirmCallBackFn);"
OnClientClick="radconfirm('Are you sure you want to delete this file?', confirmCallBackFn); return false;"
OnClientClick="return radconfirm('Are you sure you want to delete this file?', confirmCallBackFn); return false;"
<script>
function confirmCallBackFn(arg)
{
return arg;
}
</script>
OnClientClick="return radconfirm('Are you sure you want to delete this file?', confirmCallBackFn);"
OnClientClick="radconfirm('Are you sure you want to delete this file?', confirmCallBackFn);"
OnClientClick="radconfirm('Are you sure you want to delete this file?', confirmCallBackFn); return false;"
OnClientClick="return radconfirm('Are you sure you want to delete this file?', confirmCallBackFn); return false;"
<script>
function confirmCallBackFn(arg)
{
return arg;
}
</script>