how to make a few events not deletable based on their databa

how to make a few events not deletable based on their database value… and the rest of all events should behave as normal… Is that possible??

You can use

scheduelr.attachEvent("onBeforeEventDelete",function(id){ if (scheduler.getEvent(id).some_property){ dp._in_progress[id] = true; //block any DB operation against event return false; //block deleting } return true; })