Schedule provides a support for drag-drop of items from ListView. This section briefly explains you about this support by creating an application to represent, drag-drop functionality in Schedule control from the ListView. You can store your appointments in ScheduleAppointmentCollection. GridView contains items that display the appointments with its Subject and Notes properties. You can drag and drop ListViewItem into corresponding schedule area. As of now the list view items must be of ScheduleAppointment type in order to drop the item in SfSchedule control.
Figure 1: ListView items DragAndDrop into SfSchedule
In this application stored appointments are displayed in GridView items. You can DragAndDrop the appointments into the schedule area as per your convenient time. To achieve this requirement, you can consider the following three areas.
Figure 2: Stored appointments in GridView
Appointments are stored in ScheduleAppointmentCollection. Appointment type must be in ScheduleAppointment type. The following code example explains you how to store the schedule appointment collection.
Figure 3: Dragged appointment from ListVIew Items.
While Dragging, you can use DragItemsStarting event of GridView, to set the ScheduleAppointment by adding the dragged item in e.Data.Properties. The following code example explains you how to perform dragging event.
Figure 4: Dropped appointments from ListView items
While dropping the schedule appointment, you can handle schedule drop event in order to get the appointment and to remove the respective item from the GridView. The following code example explains how to perform schedule drop event.
Figure 5: DragAndDrop appointments From ListView to SfSchedule.
This page will automatically be redirected to the sign-in page in 10 seconds.