Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
420
How to create and show an AppointmentUIElement on the fly?
posted

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.

Parents
  • 420
    posted

    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.

Reply Children