Delete event only from schedule, not from database

Sometimes I want to delete an event from scheduler but not from database. I’ve checked this code:

scheduler.dataProcessor.setUpdated(id, false);

But it doesn’t work, controller Save with type Delete is fired.


try following: scheduler.deleteEvent(id, true);
The second argument goes for ‘silent’. When called this way, the method won’t trigger the dataprocessor.
Alternatively, you can prevent dataprocessor from sending the updates:

scheduler.dataProcessor.attachEvent("onBeforeUpdate",function(id,status, data){ if(status == 'deleted'){ scheduler.dataProcessor.setUpdated(id, false); return false; } return true; }); … foreupdate


This parametrer it’s not in the API documentation: … event.html