Check documentation for the latest version of dhtmlxSuite onBeforeCheck DHTMLX Docs

onBeforeCheck

fires before a checkbox is checked in a combo

boolean onBeforeCheck(string|number value,boolean newState);
valuestring|numberoption value
newStatebooleantrue if an item is going to become checked
booleantrue to allow an item to be checked, otherwise - false

Example

myCombo.attachEvent("onBeforeCheck", function(value, newState){
    // your code here
    return true;
});

Change log

added in version 4.4

Back to top