I have set the following for the RadGrid in my project.
Initially this client event works perfectly: It would display a
confirmation dialog box and will only delete the record if the user
approves it. Strangely now the script doesn't work at all. Clicking on
the delete command would immediately delete the record. I've even tried the following to no avail.
Is there some setting that I've left out? Why does it refuse to run any client script?
<ClientSettings> |
<ClientEvents OnRowDeleting="javascript:return confirm('Delete selected record?');"/> |
</ClientSettings> |
<script type="text/javascript" language="javascript"> |
function ConfirmDelete() |
{ |
return confirm('Delete selected record?'); |
} |
</script> |
<ClientSettings> |
<ClientEvents OnRowDeleting="ConfirmDelete"/> |
</ClientSettings> |