SchedulerAppointmentFormEventArgs Class
Provides data for the AppointmentFormShowing event.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public class SchedulerAppointmentFormEventArgs :
SchedulerAppointmentOperationEventArgs
Remarks
The AppointmentFormShowing event is raised before the extended or compact appointment form is shown. Use the event argument’s FormType property to identify the form. You can set the Cancel
property to true
to not show the appointment form.
<DxScheduler StartDate="@DateTime.Today"
DataStorage="@DataStorage"
ActiveViewType="SchedulerViewType.WorkWeek"
AppointmentFormShowing="OnAppointmentFormShowing">
@*...*@
</DxScheduler>
@code {
void OnAppointmentFormShowing(SchedulerAppointmentFormEventArgs args) {
if (args.FormType == SchedulerAppointmentFormType.CompactEditForm) {
args.Cancel = true;
}
}
// ...
}
Use the SchedulerAppointmentOperationEventArgs.Appointment property to access the appointment for which the form is displayed. The FormInfo property stores information about form settings.
Refer to the AppointmentFormShowing event description for more information.
Inheritance
Object
EventArgs
CancelEventArgs
SchedulerAppointmentOperationEventArgs
SchedulerAppointmentFormEventArgs
See Also