Back to Devexpress

DxScheduler.AppointmentFormShown Event

blazor-devexpress-dot-blazor-dot-dxscheduler-05b11675.md

latest1.6 KB
Original Source

DxScheduler.AppointmentFormShown Event

Fires after an appointment form is shown.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Parameters

TypeDescription
DxSchedulerAppointmentItem

An object that stores the appointment.

|

Remarks

This event is raised after an appointment form is shown. Use the event argument’s DxSchedulerAppointmentItem property to access the target appointment.

razor
<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             AppointmentFormShown="OnAppointmentFormShown">
    ...
</DxScheduler>

@Alert

@code {
    ...

    public string Alert { get; set; } = "";

    void OnAppointmentFormShown(DxSchedulerAppointmentItem args) {
        Alert = "The edit form for the following appointment has been shown: " + args.Subject ;
    }
}

Note

To cancel showing an appointment form in code, use the AppointmentFormShowing event.

See Also

DxScheduler Class

DxScheduler Members

DevExpress.Blazor Namespace