SchedulerAppointmentFormEventArgs.Cancel Property
Specifies whether to show the form or this action should be canceled.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v20.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true to show the form; otherwise, false. |
Remarks
The AppointmentFormShowing event is raised before the detailed (pop-up) or compact appointment form is shown. 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;
}
}
// ...
}
Refer to the AppointmentFormShowing event description for more information.
See Also