Check documentation for the latest version of dhtmlxSuite onBeforeDataSending DHTMLX Docs


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


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


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