This is a migrated thread and some comments may be shown as answers.

ScheduleViewDragDropBehavior custom handler no longer working.

1 Answer 78 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rod Yager
Top achievements
Rank 1
Rod Yager asked on 26 Jul 2011, 08:16 PM
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.
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?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 01 Aug 2011, 12:53 PM
Hi Rod,

Please check my reply and the sample project attached in the other thread here.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
ScheduleView
Asked by
Rod Yager
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or