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

More Drag & Drop Woes

3 Answers 161 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Gareth McNicol
Top achievements
Rank 1
Gareth McNicol asked on 16 Mar 2011, 01:19 PM
This really is beyond the pale:

I have a collection of specialised appointments, i.e. objects that inherit from Appointment.  They are shown in a Listbox and can be dragged onto a ScheduleView.

The additional fields in my inherited object are already set with their pertinent information.  However, dragging onto the ScheduleView this information is lost.

CopyFrom in the specialised object is called many times, sometimes with the correct original information, sometimes with blank information.  Always the last time is with the blank information, which is clearly wrong.

How can I make ScheduleView only copy the original source Appointment ONCE and ONCE ONLY?

2010 Q3.

3 Answers, 1 is accepted

Sort by
0
Gareth McNicol
Top achievements
Rank 1
answered on 16 Mar 2011, 01:50 PM
Additionally if I call
RadDragAndDropManager.AddDropInfoHandler

when the DropInfo event is fired, the payload has the correct information.  Why doesn't this make it to the object that placed in the target collection?

Bug?

Edit: Updating the object in the target collection with the payload on the DropInfo event also just gets overwritten by another copy call from some blank appointment.
0
Yana
Telerik team
answered on 22 Mar 2011, 10:31 AM
Hello Gareth McNicol,

We've tested the described scenario with Q1 2011 but weren't able to reproduce the issue. I've attached a simple example based on our online demo here. Could you please download it and give it a try?

All the best,
Yana
the Telerik team
0
Gareth McNicol
Top achievements
Rank 1
answered on 24 Mar 2011, 04:01 PM
Thanks a lot for that!

I still couldn't spot what was going wrong so I tore down my custom appointment and rebuilt it and hey presto, worked first time.

Mysterious.
Tags
ScheduleView
Asked by
Gareth McNicol
Top achievements
Rank 1
Answers by
Gareth McNicol
Top achievements
Rank 1
Yana
Telerik team
Share this question
or