onItemCheck

fires when you check an item in tree and treetable

void onItemCheck(id id,boolean state,Event e);
ididthe ID of the related item
statebooleandefines the checked/unchecked state of a checkbox
eEventa native event object (absent when the threeState property is enabled)

Example

some.attachEvent("onItemCheck", function(id, state, e){
    //... some code here ... 
});

Related samples

See also
Back to top