Check documentation for the latest version of dhtmlxSuite onBeforeCheck DHTMLX Docs

onBeforeCheck

fires before an item is checked/unchecked

boolean onBeforeCheck(string|number id,boolean state);
idstring|numberthe id of the item
statebooleanthe current state of the checkbox
booleantrue - allows checking

Example

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

Back to top