DHTMLX Docs & Samples Explorer

onBeforeCheck Event

This event calls user-defined handlers (if there are any) and passes the following parameters:

  • id - id of the item;
  • state - current state of the checkbox;
          tree.attachEvent("onBeforeCheck", function(id,state){});
 

The event returns:

true - allows checking;
false - denies checking;