RecurrentAppointmentActionFormEventArgs.QueryResult Property
When a user tries to delete a recurring Appointment, the Scheduler raises the confirmation dialog that asks whether they want to delete this entire series, or the currently selected occurrence only. This property allows you to forcibly set this option.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
RecurrentAppointmentAction | A RecurrentAppointmentAction enumeration member specifying an action to perform. |
Available values:
Name | Description |
---|---|
Cancel | Cancels the action. |
Series | Performs an operation on the entire series. |
Occurrence | Performs an operation on a selected occurrence only. |
Ask | The user is prompted to carry out an operation on selected occurrences only, or the entire series. |
Remarks
The figure below illustrates a confirmation dialog.
You can forcibly select one of the options the dialog suggests, and never show it to users. To do that, handle the SchedulerControl.DeleteRecurrentAppointmentFormShowing event and:
- specify the QueryResult parameter according to the desired behavior;
- set the ShowFormEventArgs.DialogResult to OK;
- set ShowFormEventArgs.Handled to true.
private void SchedulerControl_DeleteRecurrentAppointmentFormShowing(object sender, DeleteRecurrentAppointmentFormEventArgs e)
{
e.QueryResult = RecurrentAppointmentAction.Occurrence;
e.DialogResult = DialogResult.OK;
e.Handled = true;
}