Check documentation for the latest version of dhtmlxSuite onBeforeDataSending DHTMLX Docs

onBeforeDataSending

fires before sending data to a server

void onBeforeDataSending(string|number id,string state,object data);
idstring|numberthe id of an item
statestringthe item's state (operation type)
dataobjectserialized data that will be sent to the server side

Example

dp.attachEvent("onBeforeDataSending", function(id, state, data){
    //custom code here
    return true;
});

Details

The event fires for each data update request (after onBeforeUpdate).

The event can be blocked. Returning false from event handler will prevent data sending.

Possible response statuses are the following:

  • updated;
  • inserted;
  • deleted;
  • invalid;
  • error.
Back to top