called before sending data to server side
details | object | object with data details (see below) |
dp.attachEvent("onBeforeDataSend", function(details){
//... some code here ...
});
The event parameter, details, consists of:
and looks like:
{
id:5,
operation:"update",
data:{
id:5,
title:"The Godfather",
rating:"9.2"
}
}
Note that returning false from the event handler will suppress request to the server:
const processor = webix.dp("$datatable1");
processor.attachEvent("onBeforeDataSend", () => {
// cancel server request
return false;
})
Related sample: DataProcessor: Canceling Server Request