KaxSchedulerAppointmentCancelingEdit Event |
Occurs when the Cancel button of an edit form is clicked, but before KaxScheduler exits edit mode.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic event AppointmentCancelingEditEventHandler AppointmentCancelingEdit
Public Event AppointmentCancelingEdit As AppointmentCancelingEditEventHandler
public:
event AppointmentCancelingEditEventHandler^ AppointmentCancelingEdit {
void add (AppointmentCancelingEditEventHandler^ value);
void remove (AppointmentCancelingEditEventHandler^ value);
}
member AppointmentCancelingEdit : IEvent<AppointmentCancelingEditEventHandler,
AppointmentCancelingEditEventArgs>
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.
Examplesvoid 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;
}
}
}
Sub KaxScheduler1_FormCreated(sender As Object, e As SchedulerFormCreatedEventArgs)
If e.Container.Mode = SchedulerFormMode.Insert Then
Dim startDate As TextBox = CType(e.Container.FindControl("StartDate"), TextBox)
If startDate.Text = String.Empty Then
e.Cancel = true
End If
End If
End Sub
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