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);
scheduler.deleteEvent(id);

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

Thanks

Hi,
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; });
docs.dhtmlx.com/doku.php?id=dhtm … foreupdate

Thanks,

This parametrer it’s not in the API documentation:

docs.dhtmlx.com/scheduler/api__s … event.html