Check documentation for the latest version of dhtmlxSuite onCheck DHTMLX Docs

onCheck

fires immediately after an item in the tree has been checked/unchecked

void onCheck(string|number id,boolean state);
idstring|numberid of the item that was checked/unchecked
statebooleancurrent state of the checkbox (1 - item is checked, 0 - item is unchecked)

Example

myTree.attachEvent("onCheck", function(id, state){
    // your code here
});

Back to top