Dear Support,
Using angular, we have the following setup.
<bryntum-calendar style="width:100%"
...
(onBeforeEventSave)="beforeEventSave($event)">
</bryntum-calendar>
public async beforeEventSave(eventRecord){
const result = await MessageDialog.confirm({
title : 'Please confirm (beforeEventSave)',
message : `Start time: ${DateHelper.format(eventRecord.eventRecord.data.startDate, 'ddd LST')}<br>End time: ${DateHelper.format(eventRecord.eventRecord.data.endDate, 'ddd LST')}`
});
// Return true to accept the drop or false to reject it
return result === MessageDialog.okButton;
}
Using the above, I expect that the event save is cancelled. We are also using the crudmanager which is still fired when the user presses CANCEL. We looked at CrudManager events like before sync but not sure whats the best practice in this case.
We want the user to confirm the edit/save of the event. If the user chooses CANCEL, the event is not saved and also the crudmanger is not synced.
Thanks.