OnDragStart

Definition

It is an event of the SAPCAlendar.Calendar library. It occurs when an application user initiates the drag and drop operation for an activity within the same view or across the views in the calendar. The scenarios in which this event occurs are described below.

  • Dragging an appointment and dropping it on an event in the day view

  • Dragging an event and dropping it on an appointment in the day view

  • Increasing or decreasing the time slot of an appointment in the day view

  • Moving an appointment to a different time slot in the day view

  • Dragging an activity in a day view and dropping it in a different view (for example, week view)

  • Dragging an event in a month or week view to increase or decrease the number of days for which the event is scheduled

Use

Handling this event allows you to get the activity related information before the activity undergoes some changes through the drag and drop operation by the application user.

Structure

The OnDragStart event has the following characteristics:

Name

OnDragStart

Signature

Public Event OnDragStart(ByVal AppointmentItem As ObjectModel.ICRMCalendarAppointment, ByRef bCancelDrag As Boolean)

Parameters

AppointmentItem – Appointment object with its initial state.

bCancelDrop – A boolean value that determines whether the drag and drop operation to be accepted or rejected. The value is set to False, which indicates that the drag and drop operation is accepted.