I had drag and drop working and now it doesn't seem to be working.
I have a DragQuery handler that creates Custom Appointment objects from ListViewItems (DataRowView) to the ScheduleView and adds them to an ObservableCollection to be added as the payload.
However, now in my custom ScheduleViewDragDropBehavior class, the objects being dragged are Telerik Appointment items instead of the CustomAppointment object that I created and added as the payload. Did something change? I already figured one thing out and that was that I had to add the new ExecutionMode property to get my drag to occur from my ListView. What else has changed? Kind of upsetting that I keep having to changing things everytime I upgrade the controls.
Is there a more current example of how to drag listviewitems to the scheduleview?
I have a DragQuery handler that creates Custom Appointment objects from ListViewItems (DataRowView) to the ScheduleView and adds them to an ObservableCollection to be added as the payload.
if
(appointments.Count > 0)
{
e.Options.DragCue = CreateDragCue(appointments);
ScheduleViewDragDropPayload payload =
new
ScheduleViewDragDropPayload(
null
, appointments);
e.Options.Payload = payload;
}
However, now in my custom ScheduleViewDragDropBehavior class, the objects being dragged are Telerik Appointment items instead of the CustomAppointment object that I created and added as the payload. Did something change? I already figured one thing out and that was that I had to add the new ExecutionMode property to get my drag to occur from my ListView. What else has changed? Kind of upsetting that I keep having to changing things everytime I upgrade the controls.
Is there a more current example of how to drag listviewitems to the scheduleview?