KaxSchedulerPrepareToEdit Method |
Prepares the specified appointment for editing.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic Appointment PrepareToEdit(
Appointment appointmentToEdit,
bool editSeries
)
Public Function PrepareToEdit (
appointmentToEdit As Appointment,
editSeries As Boolean
) As Appointment
public:
virtual Appointment^ PrepareToEdit(
Appointment^ appointmentToEdit,
bool editSeries
) sealed
abstract PrepareToEdit :
appointmentToEdit : Appointment *
editSeries : bool -> Appointment
override PrepareToEdit :
appointmentToEdit : Appointment *
editSeries : bool -> Appointment
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.
ExamplesAppointment occurrence = KaxScheduler1.Appointments[0];
Appointment recurrenceException = KaxScheduler1.PrepareToEdit(occurrence, false);
recurrenceException.Subject = "This is a recurrence exception";
KaxScheduler1.UpdateAppointment(recurrenceException);
Dim occurrence As Appointment = KaxScheduler1.Appointments(0)
Dim recurrenceException as Appointment = KaxScheduler1.PrepareToEdit(occurrence, False)
recurrenceException.Subject = "This is a recurrence exception"
KaxScheduler1.UpdateAppointment(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