Hi All ,
I am creating CRUD operation with scheduler control, I m trying to trigger event for Insert/Update/Delete like this. But it is working only for Create Appointment.
could please give me exact syntax for Update and Delete ?
<SfSchedule TValue="AppointmentData" Width="900px" Height="700px" AllowDragAndDrop="true" EnableAutoRowHeight="true"
@bind-CurrentView="CurrentView">
<ScheduleViews>
<ScheduleView Option="View.Day" StartHour="07:00" EndHour="19:00"></ScheduleView>
<ScheduleView Option="View.Week" StartHour="07:00" EndHour="19:00"></ScheduleView>
<ScheduleView Option="View.Month" ShowWeekend="true"></ScheduleView>
<ScheduleView Option="View.TimelineDay" StartHour="07:00" EndHour="19:00"></ScheduleView>
</ScheduleViews>
<ScheduleEvents TValue="AppointmentData" ActionCompleted="OnActionCompleted"></ScheduleEvents>
public void OnActionCompleted(Syncfusion.Blazor.Schedule.ActionEventArgs<AppointmentData> args)
{
string msg = string.Empty;
switch (args.ActionType)
{
case ActionType.EventChange:
// msg = ScheduleService.UpdateAppointmentData(args.AddedRecords[0]);
break;
case ActionType.EventCreate:
msg = ScheduleService.CreateAppointmentData(args.AddedRecords[0]);
break;
case ActionType.EventRemove:
// msg = ScheduleService.DeleteAppointmentData(args.AddedRecords[0]);
break;
case ActionType.ViewNavigate:
break;
case ActionType.DateNaviagte:
break;
case ActionType.ResourceExpand:
break;
case ActionType.ResourceCollapse:
break;
default:
break;
}