Back to Devexpress

RecurrentAppointmentActionFormEventArgs.QueryResult Property

windowsforms-devexpress-dot-xtrascheduler-dot-recurrentappointmentactionformeventargs.md

latest3.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public RecurrentAppointmentAction QueryResult { get; set; }
vb
Public Property QueryResult As RecurrentAppointmentAction

Property Value

TypeDescription
RecurrentAppointmentAction

A RecurrentAppointmentAction enumeration member specifying an action to perform.

|

Available values:

NameDescription
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:

csharp
private void SchedulerControl_DeleteRecurrentAppointmentFormShowing(object sender, DeleteRecurrentAppointmentFormEventArgs e)
{
    e.QueryResult = RecurrentAppointmentAction.Occurrence;
    e.DialogResult = DialogResult.OK;
    e.Handled = true;
}
vb
Private Sub SchedulerControl_DeleteRecurrentAppointmentFormShowing(ByVal sender As Object, ByVal e As DeleteRecurrentAppointmentFormEventArgs)
    e.QueryResult = RecurrentAppointmentAction.Occurrence
    e.DialogResult = DialogResult.OK
    e.Handled = True
End Sub

See Also

DeleteRecurrentAppointmentFormShowing

RecurrentAppointmentActionFormEventArgs Class

RecurrentAppointmentActionFormEventArgs Members

DevExpress.XtraScheduler Namespace