DHTMLX Docs & Samples Explorer

onCheck Event

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

  • id - id of the item that was checked|unchecked;
  • state - current state of the checkbox (1 - item is checked, 0 - item is unchecked);
          tree.attachEvent("onCheck", function(id,state){});