We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to do a DragAndDrop of ListView items into SfSchedule Control?

Platform: WinRT |
Control: SfSchedule
Tags: sfschedule

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.

  • Store appointments
  • Drag appointments
  • Drop appointments

Store Appointments

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.


Drag appointments

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.


Drop appointments

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.


Output: http://www.syncfusion.com/downloads/support/directtrac/general/ScheduleDragAndDropWinRT_Video-98904193.zip



You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile