Class AppointmentEditorOpeningEventArgs
Provides data for a AppointmentEditorOpening event.
Inheritance
Namespace: Syncfusion.UI.Xaml.Scheduler
Assembly: Syncfusion.SfScheduler.WPF.dll
Syntax
public class AppointmentEditorOpeningEventArgs : CancelEventArgs
Constructors
AppointmentEditorOpeningEventArgs()
Declaration
public AppointmentEditorOpeningEventArgs()
Properties
Appointment
Gets the details of appointment that is being updated. The value will be null when event trigged to create new appointment.
Declaration
public ScheduleAppointment Appointment { get; }
Property Value
Type |
---|
ScheduleAppointment |
Remarks
When appointment editor opening on the occurrence appointment of pattern appointment when recurrence edit mode as occurrenceOccurrence , it holds the occurrence appointment details. You can get the pattern appointment details from the occurrence appointment by using the GetPatternAppointment(SfScheduler, Object).
AppointmentEditorOptions
Gets or sets an AppointmentEditorOptions that can be treated as a bit field. It is a set of flags that determines the visibility of editors in the SchedulerAppointmentEditorWindow for the ScheduleAppointment fields.
Declaration
public AppointmentEditorOptions AppointmentEditorOptions { get; set; }
Property Value
Type |
---|
AppointmentEditorOptions |
Remarks
The default value is All If the AppointmentEditorOptions value is All, it will display all the editors. If the AppointmentEditorOptions value is Reminder it will display basic editors such as subject, location, start and end date along with Reminder editor. If the AppointmentEditorOptions value is AppointmentEditorOptions.All | ~AppointmentEditorOptions.Reminder , only reminder editor alone will not be displayed. If the AppointmentEditorOptions value is AppointmentEditorOptions.All | (~AppointmentEditorOptions.Reminder amp ~AppointmentEditorOptions.Resource) ,only reminder and resource editor will not be displayed.
Examples
Below settings hides Reminder and Resource editors from the appointment editor window.
this.Schedule.AppointmentEditorOpening += OnScheduleAppointmentEditorOpening;
private void OnScheduleAppointmentEditorOpening(object sender, AppointmentEditorOpeningEventArgs e)
{
e.AppointmentEditorOptions = AppointmentEditorOptions.All | (~AppointmentEditorOptions.Reminder & ~AppointmentEditorOptions.Resource);
}
See Also
DateTime
Gets the date time of time slot or month cell where used double clicked the schedule.
Declaration
public DateTime DateTime { get; }
Property Value
Type |
---|
System.DateTime |
RecurringAppointmentEditMode
Gets the delete mode for recurring appointments selected in the Recurrence appointment Editing Option dialog.
Declaration
public Nullable<RecurringAppointmentEditMode> RecurringAppointmentEditMode { get; }
Property Value
Type |
---|
System.Nullable<RecurringAppointmentEditMode> |
Remarks
This property specifies whether deletes to a recurring appointment series or occurrence of recurring appointment.
Resource
Gets the resource of an appointment under which the appointment is located.
Declaration
public SchedulerResource Resource { get; }
Property Value
Type |
---|
SchedulerResource |
Remarks
Data property holds the data object associated with scheduler when scheduler resource created from custom data object using ResourceMapping.