Here is what I am trying to do with the utlradayview control. The user has 3 appointments with the same date time for both starting and ending dates. I need to be able to control what order the appointments get displayed in. I have figured out that if I add the appointments in the correct order I can can control it in that manor but what I am struggling with is the drag and drop.
When the user drags and drops an appointment is there a way for me to find out where the user has dropped the appointment in relation to the other appointments.
Hello SPrabhakar,
I believe that you could use the 'AfterAppointmentsMoved' event of the 'UltraDayView' control in order to retrieve this information. Then you could use its 'AfterAppointmentsMovedEventArgs' class and access the appointment information.
Please do not hesitate to ask if something comes up.
Boris,
I was thinking the same thing but the event does not fire in the case that described. The event does fire if I am moving the appointment to a different time. So here is what I am attempting to do.
We have 2 appointments for the same day and time and they both show up side by side what I am trying to achieve is allow the user to change the order of the appointments within the same time slot.
For example I have 3 appointments, appointment A, appointment B and appointment C and they are all for in the 10:15 AM time slot (the date doesn't matter for this example). When the control is loaded they are loaded A, B, C and the appear in the 10:15 AM time slot in that order. What I am trying to achieve is to allow the user to be able to re order the appointments within the same time slot. The end result in this example might be C, A, B. I cannot find an event that will fire when I attempt to move time slots within the same time slot.
Thanks,
Stephen