Click or drag to resize
KaxSchedulerPrepareToEdit Method
Prepares the specified appointment for editing.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public Appointment PrepareToEdit(
	Appointment appointmentToEdit,
	bool editSeries
)

Parameters

appointmentToEdit
Type: Kettic.AspNet.ControlsAppointment
The appointment to edit.
editSeries
Type: SystemBoolean
if set to true [edit series].

Return Value

Type: Appointment
Remarks
If the specified appointment is not recurring, the method does nothing and returns the same appointment. If the appointment is recurring and editSeries is set to true the method returns the recurrence parent. Otherwise, the method clones the appointment and updates it state to recurrence exception.
Examples
Appointment occurrence = KaxScheduler1.Appointments[0];
Appointment recurrenceException = KaxScheduler1.PrepareToEdit(occurrence, false);

recurrenceException.Subject = "This is a recurrence exception";

KaxScheduler1.UpdateAppointment(recurrenceException);
See Also