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.
Unfortunately, activation email could not send to your email. Please try again.

How to do a DragAndDrop of ListView items into SfSchedule Control with a custom entity

Thread ID:

Created:

Updated:

Platform:

Replies:

129998 Apr 13,2017 10:09 AM Apr 17,2017 05:10 AM UWP 1
loading
Tags: SfSchedule
David
Asked On April 13, 2017 10:09 AM

Hello,
I have a problem, I want to drag an drop an item ListView items into SfSchedule with my custom entity.
public class RendezVous
{
  public string Title{ getset; }
  public DateTime Start { getset; }
  public DateTime End { getset; }
}
I don't want to use the ScheduleAppointment entity.

1] I took the WinRT example  : https://www.syncfusion.com/kb/2854/how-to-do-a-draganddrop-of-listview-items-into-sfschedule-control.
2] I replace ScheduleAppointment  with my RendezVous entity.
3] I had the DragOver event.
private void Schedule_DragOver(object sender, DragEventArgs e)
{
  e.AcceptedOperation = DataPackageOperation.Copy;
}
4] I have the mapping
<syncfusion:SfSchedule.AppointmentMapping>
   <syncfusion:ScheduleAppointmentMapping SubjectMapping="Title"
                                          StartTimeMapping="Start"
                                          EndTimeMapping="End" />
</syncfusion:SfSchedule.AppointmentMapping>
it doesn't work, nothing happend !

thanks.



Subburaj Pandian Veluchamy [Syncfusion]
Replied On April 17, 2017 05:10 AM

Hi David, 
 
Thank you for your interest in Syncfusion products. 
 
Based on the provided information we have checked your requirement with Drag and drop of ListView items into Schedule in UWP. We have checked the mentioned Knowledge Base (KB) with WinRT, for this requirement in UWP “DragEnter” event needs to be trigger for Dragging the item from the list. We have prepared simple based in your requirement, please refer the sample by the below link. 
 
 
If the given solution doesn’t meet your requirement, could you please revert to us by modifying the provided sample based on your requirement with more information about your query, it will be helpful for us to check on it and provide you the better solution.  
 
Regards,  
Subburaj Pandian V.    


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;