attachEvent method can be used to add an event handler to any of the available events. To do so, the method need to be called with the following parameters:
function my_handler(){ do_something(); }; view.attachEvent("onSomeEvent",my_handler);
Several handlers can be attached to one and the same event, and all of them will be executed. The names of the events are case-insensitive.
There is a simple way of removing an event-handler:
var id = view.attachEvent("onSomeEvent",my_handler); ... view.detachEvent(id); // unique id of the event handler
All events which name contains “before” - can be blocked, returning true from such event handler will confirm operation , returning false or not returning anything will block default event processing.
The following events are available in dhtmlxGrid: