The following events are available in dhtmlxGrid:
Sorting Events:
Context Menu Events:
-
onRightClick Event - occurs immediately after the right mouse button was clicked on a grid row;
Grouping
Filtering
FilterStart Event - occurs when filtering is activated but before real filtering starts;
-
-
Other Events:
onEnter Event - occurs immediately after the Enter key is pressed;
-
onHeaderClick Event - occurs right after a header was clicked, before sorting or any other actions;
onKeyPress Event - occurs after a key was pressed but before the default key processing starts;
-
-
-
The user can add any user-defined handler to any of the available events.
To do this, the user can use attachEvent() method with the following parameters:
grid.attachEvent(evName, evHandler);
Several handlers can be attached to one and the same event, and all of them will be executed.
Note: the names of the events are case-sensitive.
There is a simple way of removing an event-handler:
grid.detachEvent(id); // unique id of the event handler