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

onBeforeCheck

fires before an item is checked/unchecked

boolean onBeforeCheck(string|number id,boolean state){ ... };

Parameters

idstring|numberthe id of the item
statebooleanthe current state of the checkbox

Returns

booleantrue - allows checking

Example

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

Back to top