New to Telerik UI for .NET MAUIStart a free 30-day trial

Contains state information about the dialog that is going to be closed. This event argument class allows applications to intercept dialog closing events, access the dialog result, and optionally cancel the closing operation for validation purposes.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class SchedulerDialogClosingEventArgs : SchedulerDialogEventArgs

Inheritance: objectSchedulerDialogEventArgsSchedulerDialogClosingEventArgs

Inherited Members SchedulerDialogEventArgs.DialogType

Constructors

Initializes a new instance of the SchedulerDialogClosingEventArgs class.

C#
public SchedulerDialogClosingEventArgs(SchedulerDialogType dialogType, bool? dialogResult)
Parameters:dialogTypeSchedulerDialogTypedialogResultbool?

Properties

Gets or sets a value indicating whether the dialog should be closed. When set to true, the dialog closing is cancelled and the dialog remains open. This allows applications to perform validation and prevent closing if data is invalid.

C#
public bool Cancel { get; set; }

Gets the DialogResult when closing the dialog. This property indicates how the user interacted with the dialog before it was closed. The value is null when the dialog is closed by the close button of the SchedulerDialog, false when Cancel option is pressed, and true when the dialog is accepted (OK/Save pressed).

C#
public bool? DialogResult { get; }