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.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic void UpdateAppointment(
Appointment appointmentToUpdate,
Appointment originalAppointment
)
Public Sub UpdateAppointment (
appointmentToUpdate As Appointment,
originalAppointment As Appointment
)
public:
virtual void UpdateAppointment(
Appointment^ appointmentToUpdate,
Appointment^ originalAppointment
) sealed
abstract UpdateAppointment :
appointmentToUpdate : Appointment *
originalAppointment : Appointment -> unit
override UpdateAppointment :
appointmentToUpdate : Appointment *
originalAppointment : Appointment -> unit
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.
ExamplesAppointment 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);
Dim occurrence As Appointment = KaxScheduler1.Appointments(0)
Dim recurrenceException as Appointment = KaxScheduler1.PrepareToEdit(occurrence, False)
Dim modifiedAppointment = recurrenceException.Clone()
modifiedAppointment.Subject = "This is a recurrence exception"
KaxScheduler1.UpdateAppointment(modifiedAppointment, recurrenceException)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also