DxScheduler.AppointmentRemoved Event

Fires after an appointment is removed from the AppointmentsSource object.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public EventCallback<DxSchedulerAppointmentItem> AppointmentRemoved { get; set; }

Parameters

Type Description
DxSchedulerAppointmentItem

A DxSchedulerAppointmentItem object that stores a removed appointment.

Remarks

Use the AppointmentRemoved event to get information about a removed appointment after it has been deleted from the AppointmentsSource object.

NOTE

To cancel an appointment removal in code, use the AppointmentRemoving event.

The code below uses the AppointmentRemoved event to remove an appointment from a data source after it was deleted from the AppointmentsSource object.

<DxScheduler DataStorage="..."
             AppointmentRemoved="async (e) => await AppointmentRemoved(e)">
    <DxSchedulerDayView ShowWorkTimeOnly="true"></DxSchedulerDayView>
</DxScheduler>


@code {
    async Task AppointmentRemoved(DxSchedulerAppointmentItem e) {
        await Http.DeleteAsync("https://MyWebService.com/api/MedicalAppointments/" + e.Id);
    }
}    

View Example: Scheduler for Blazor - How to implement CRUD operations with a Web API Service

See Also