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
686
UltraDayView - BeforeAppointmentsMoved
posted

Another extremely frustrating problem with what seems to be a not very well thought out event system.

I need an answer to this basic question; How can i allow users to move appointments between owners, while preventing them from moving the appointment up and down the timeslots (they should be allowed to change the owner, but not allowed to change the start and end time). The answer is you cant, unless you perform some hideous workaround like reverting the appointment back in the AfterAppointmentsMoved event if the timeslot changes.

If i knew where the appointment was being moved to, i could use the eventargs.Cancel property to stop them under certain circumstances and it would be a very clean and tidy solution. But since the event args do not provide us with any information about where the appointment is being dragged to, it actually provides little value at all.

The lack of common sense when it comes to these events has caused me huge headaches in the past. Another prime example is the BeforeAppointmentResized problem i mentioned in my previous post. It drives me insane.

You can tell me to log an enhancement request, but ive already done that. These issues have caused me problems in the past because the workarounds for basic missing functionality mean im forced to write ugly and unreliable blocks of code to work around it, and i have logged requests to have these issues sorted but 2 or 3 major versions later its all still the same.