The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientScheduler.AppointmentDrag Event

A client-side event that occurs when an appointment is being dragged.

Declaration

AppointmentDrag: ASPxClientEvent<AppointmentDragEventHandler<ASPxClientScheduler>>

Event Data

The AppointmentDrag event handler receives an argument of the ASPxClientAppointmentDragEventArgs type. The following properties provide information specific to this event.

Property Description
allow Specifies whether or not appointments can be dropped into the intervals over which they are currently dragged.
dragInformation Provides information about dragged appointments.
mouseEvent Gets a mouse event object related to the current drag operation.

Examples

In this example, the ASPxClientScheduler.AppointmentDrag is handled to disable dragging appointments with the "Completed" status. In the ASPxScheduler.InitClientAppointment event handler, custom field values (that store additional information about appointments) are passed to the client appointments so that these fields values can be analyzed on the client side.

protected void ASPxScheduler1_InitClientAppointment(object sender, InitClientAppointmentEventArgs args) {
    args.Properties.Add("cpCompleted", args.Appointment.CustomFields["LessonCompleted"]);
    args.Properties.Add("cpCustomRecurringFlag", args.Appointment.CustomFields["CustomRecurringFlag"]);
    args.Properties.Add("cpCustomRecurringID", args.Appointment.CustomFields["CustomRecurringID"]);
}
See Also