Click or drag to resize
KaxSchedulerUpdateAppointment Method (Appointment, Appointment)
Updates the specified appointment and persists the changes through the provider. Use this overload when the underlying data source requires both original and modified data to perform an update operation. One such example is LinqDataSource.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public void UpdateAppointment(
	Appointment appointmentToUpdate,
	Appointment originalAppointment
)

Parameters

appointmentToUpdate
Type: Kettic.AspNet.ControlsAppointment
The appointment to update.
originalAppointment
Type: Kettic.AspNet.ControlsAppointment
The original appointment. Use Appointment.Clone to obtain a copy of the appointment before updating its properties.
Remarks
This method can be used, along with PrepareToEdit to create and persist a recurrence exceptions.
Examples
Appointment occurrence = KaxScheduler1.Appointments[0];
Appointment recurrenceException = KaxScheduler1.PrepareToEdit(occurrence, false);

Appointment modifiedAppointment = recurrenceException.Clone();
modifiedAppointment.Subject = "This is a recurrence exception";

KaxScheduler1.UpdateAppointment(modifiedAppointment, recurrenceException);
See Also