SchedulerAppointmentFormClosingEventArgs.FormType Property
Specifies the appointment form type.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public SchedulerAppointmentFormType FormType { get; set; }
Property Value
Type | Description |
---|---|
SchedulerAppointmentFormType | A SchedulerAppointmentFormType enumeration value. |
Available values:
Name | Description |
---|---|
EditForm | The extended (pop-up) form that opens when a user clicks the expand button in the compact edit form. |
CompactEditForm | The compact form that appears when a user creates or edits an appointment. |
Remarks
The AppointmentFormClosing event is raised before the extended or compact appointment form is closed. Use the event argument’s FormType
property to identify the form.
<DxScheduler StartDate="@DateTime.Today"
DataStorage="@DataStorage"
ActiveViewType="SchedulerViewType.WorkWeek"
AppointmentFormClosing="OnAppointmentFormClosing">
@*...*@
</DxScheduler>
@code {
void OnAppointmentFormClosing(SchedulerAppointmentFormClosingEventArgs args) {
if (args.FormType == SchedulerAppointmentFormType.CompactEditForm) {
// Respond to form closing. For instace, show an information message.
}
}
// ...
}
See Also