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. (Last updated on : Nov 16th 2018).
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?

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

Description

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.

C#

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.

C#

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.

C#

 

Figure 5: DragAndDrop appointments From ListView to SfSchedule.

Sample:http://www.syncfusion.com/downloads/support/directtrac/general/ScheduleDragAndDrop_WinRT-1915603951.zip

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

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
2854 11/24/2014 11/24/2014 WinRT SfSchedule
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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