Check documentation for the latest version of dhtmlxSuite Handling Events DHTMLX Docs

Handling Events

DHTMLX Connector uses events to manage Insert/Update/Delete operations.

The code snippet below shows how to attach the beforeUpdate event:

class CustomBehavior extends ConnectorBehavior{
    public void beforeUpdate(DataAction data) {
        //any custom code
component.event.attach(new CustomBehavior());

Handler functions get one input parameter and this parameter depends on the attached event.

In the following table you'll see a full list of events and the appropriate input parameters of handler functions.

Event Input parameter of handler function
beforeSort SortInterface Object
beforeFilter FilterInterface Object
beforeRender DataItem Object

DataAction Object
beforeOutput none

Back to top