Hi,
I want to ask user confirmation after a delete action (doubleclick on a grid row).I have the clientscript wired up but after i hit cancel on the confirm pop-up it runs the code-behind event anyway.
Any idea how to stop the event after i click cancel?
JS scriptFunction UGProducts_DblClickHandler() { if ($("input[name$='ActiveButton']").val() == "DeleteProduct") { return confirm("Are you sure?"); } }Regards Peter
Thank you very much for the reply, it works like a charm
try this:
Function UGProducts_DblClickHandler(gridName, cellId) {
if (!confirm("Are you sure?") {
igtbl_cancelPostBack(gridName);
igtbl_getGridById(gridName).CancelPostBack = true;
}