onBeforeDataSend

called before sending data to server side

void onBeforeDataSend(object details){ ... };

Parameters

detailsobjectobject with data details (see below)

Example

dp.attachEvent("onBeforeDataSend", function(details){
    //... some code here ... 
});

Details

The event parameter, details, consists of:

  • data (object) - data object;
  • id (string, number) - ID of a data item on client side;
  • operation (string) - operation name ("update, "insert", "delete"););

and looks like:

{
    id:5,
    operation:"update",
    data:{
        id:5, 
        title:"The Godfather",
        rating:"9.2"
    }
 
}
See also
Back to top