Click or drag to resize
KaxSchedulerOnClientAppointmentMoveEnd Property
Gets or sets a value indicating the client-side event handler that is called when an appointment has been moved.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public string OnClientAppointmentMoveEnd { get; set; }

Property Value

Type: String
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
Remarks

If specified, the OnClientAppointmentMoveEnd client-side event handler is called when an appointment has been moved.

The event will also be fired when the move operation has been aborted by the user. In this case the get_isAbortedByUser() property of the event arguments will be set to "true".

The event will also fire if the appointment is dropped in its original location, but no postback will occur as the appointment is not altered.

Two parameters are passed to the handler:

  • sender, the scheduler client object;
  • eventArgs with six properties:
    • get_appointment(), the instance of the appointment.
    • get_newStartTime(), the new start time of the appointment.
    • get_editingRecurringSeries(), a boolean value indicating whether the user has selected to edit the whole series.
    • get_targetSlot(), the target slot that the appointment has been moved to.
    • get_isAbortedByUser(), indicates whether the move operation has been aborted as a result of user action.
    • set_cancel(), set to true to cancel the move operation.

This event can be cancelled.

Examples

<script type="text/javascript">
function onClientAppointmentMoveEndHandler(sender, eventArgs)
{
var appointment = eventArgs.get_appointment();
var newStartTime = eventArgs.get_newStartTime();
}
</script>

<kettic:KaxScheduler ID="KaxScheduler1"
runat="server"
OnClientAppointmentMoveEnd="onClientAppointmentMoveEndHandler">
....
</kettic:KaxScheduler>

See Also