Q:

ASPxGridView stopping callbacks

Is there a way to stop the processing of a callback initiated by a custom button defined in an ASPxGridView grid?
I have this in my code:
BeginCallback="function(s, e) {
    var response = confirm('Really want to do this?');
    //if response = false, I need to stop processing...
}"

I need one of two solutions:

stop immediately the call (the server will not be hit)
or
inform the server that the call was cancelled so that the server can just exit quickly from callback handler.

Thanks.

A:

You can do this..
<ClientSideEvents CustomButtonClick="function(s, e)
{
if(e.buttonID=='Send')
{
if (confirm ('Are you sure?'))
{
e.processOnServer = true;
}
}
else
{
e.processOnServer = true;
}
}
" />

Credit

