Hi,
I am implementing drag/drop behaviour from a simple ListView of appointment objects to an UltraDayView control (v8.3).
What I would like to do is copy the visual bahaviour of the day view that you get when you drag an appointment from one place to another, i.e. when the mouse enters the DayView on a drag operation, an AppointmentUIElement would 'appear' and follow the mouse until it is dropped.
I've been playing with creation/draw filters to try and make this work, without any success; can anyone advise if this would even be possible and if so, maybe point me in the right direction?
Thanks, Jim.
Happys Days!
Looks like the day view provides this behaviour out of the box - I've corrected logic elseweher in my code and this is now working as required.
One thing though - if I drag the ListView object back out of the DayView control bounds (having not 'dropped' it), the appointment is left showing in the last position it was dragged to. How can I force the DayView to cancel this uncommited change and re-paint the screen?
Jim.
Hello Jim,
Have you been able to try the Brian's suggestion?
Please let us know if you have any further questions.
DayView does not provide external drag/drop functionality out of the box, so I am not sure how you got this to happen. Assuming you add an Appointment to the UltraCalendarInfo.Appointments collection in the DragEnter event, you could use the converse of that approach and remove it in DragLeave.