Skip to main content
A newer version of this page is available. .

DxScheduler.AppointmentRemoved Event

Fires after an appointment is removed from the AppointmentsSource object.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.1.dll

NuGet Package: DevExpress.Blazor

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.

<DxScheduler DataStorage="..."
             AppointmentRemoved="@AppointmentRemoved">
    <DxSchedulerDayView ShowWorkTimeOnly="true"></DxSchedulerDayView>
</DxScheduler>

@code {
    ...

    async Task AppointmentRemoved(DxSchedulerAppointmentItem e) {
        await Http.DeleteAsync(fullWebAPIUrl + e.Id);
    }
}    

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

See Also