We have this code (using DHTMLX and DHTMLXMESSAGE):
myCheckBox.attachEvent('onEditCell', function(stage,rId,cInd,nValue,oValue){
dhtmlx.confirm({
type:"confirm",
text: "Are you sure?",
callback: function(result){
if(result) {
return true;
}
return false;
}
});
});
OnEditCell event should return “true” or “false” to validate action.
Now my code always check my checkbox and then show the confirm popup.
You cannot return anything to attachEvent callback. Based on the result of your confirm checkbox, execute the relevant code
Hope this helps.