DxScheduler.AppointmentRemoved Event
Fires after an appointment is removed from the AppointmentsSource object.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v22.2.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.
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);
}
}