Check documentation for the latest version of dhtmlxSuite attachEvent DHTMLX Docs

attachEvent

adds any user-defined handler to available events

void attachEvent(string evName,function evHandler);
evNamestringan event's name
evHandlerfunctiona user-defined event handler

Example

myTreeGrid.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