Check documentation for the latest version 6.0 of dhtmlxSuite attachEvent DHTMLX Docs

attachEvent

adds any user-defined handler to available events

void attachEvent(string evName,function evHandler);

Parameters

evNamestringan event's name
evHandlerfunctiona user-defined event handler

Example

myGrid.attachEvent("onRowSelect",function(rowId,cellIndex){
    alert("Row with id="+rowId+" was selected");
});

Details
  • return 'true' - confirms the action
  • return 'false' - denies the action
  • if there is no "return" command, it is treated as return 'false'
Back to top