Hi,
I’m using an editortemplate in Scheduler but clicking delete button (see attached image) does not fire any event in code. It works for single events but not recurrence events.
What can I do to fix this? See attached sample code
Regards,
/Stefan
Attachment: SyncfusionScheduler_964d31c4.zip
|
public void OnActionBegin(ActionEventArgs<ScheduleData.AppointmentData> args)
{
if (args.ActionType == ActionType.EventRemove) //To check for request type is event delete
{
args.Cancel = true; //To prevent the appointment deletion
}
} |
Hi ,
Thanks for quick reply!
That's NOT the problem. Run the attached project and delete the single event "Closed" and the methods
OnActionBegin and OnActionCompleted is called but if you click on any of the recurrence events and try to delete no method is called at all. Nothing happens when you click the delete button in the dialog (see image).
Hope you understand the problem.
|
public async Task OnEventClick(EventClickArgs<ScheduleData.AppointmentData> args)
{
args.Cancel = true;
CurrentAction action = CurrentAction.Save;
if(args.Event.RecurrenceRule != null)
{
action = CurrentAction.EditOccurrence;
}
await ScheduleRef.OpenEditorAsync(args.Event, action); //to open the editor on event click
} |