Skip to main content

SchedulerAppointmentOperationEventArgs.Appointment Property

Specifies an appointment that is modified (added, updated or removed).

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll


public DxSchedulerAppointmentItem Appointment { get; }

Property Value

Type Description

A DxSchedulerAppointmentItem object that stores a modified appointment.


Use the Appointment property to access the modified (added, updated or removed) appointment and change some of its properties (if needed).

The code below changes the added appointment’s Id property and then uses this property’s value to access the appointment after it has been added to the AppointmentsSource object.

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

@code {

    void AppointmentInserting(SchedulerAppointmentOperationEventArgs e) {
        e.Appointment.Id = -1;

    async Task AppointmentInserted(DxSchedulerAppointmentItem e) {
        MedicalAppointments insertedItem = (DataStorage.AppointmentsSource as List<MedicalAppointments>).Where(m => m.Id == -1).FirstOrDefault();
        insertedItem.Id = 0;
        await Http.PostJsonAsync<MedicalAppointments>("", insertedItem);

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

See Also