Click or drag to resize
KaxSchedulerAppointmentCancelingEdit Event
Occurs when the Cancel button of an edit form is clicked, but before KaxScheduler exits edit mode.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public event AppointmentCancelingEditEventHandler AppointmentCancelingEdit

Value

Type: Kettic.AspNet.ControlsAppointmentCancelingEditEventHandler
Remarks
You can use this event to provide an event-handling method that performs a custom routine, such as stopping the cancel operation if it would put the appointment in an undesired state. To stop the cancel action set the AppointmentCancelingEditEventArgs.Cancel property of AppointmentCancelingEditEventArgs to true.
Examples
void KaxScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
    if (e.Container.Mode == SchedulerFormMode.Insert)
    {
        TextBox startDate = (TextBox) e.Container.FindControl("StartDate");
        if (startDate.Text == String.Empty)
        {
            e.Cancel = true;
        }
    }
}
See Also