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.
Boris.
I do not have the latest version of your control so I do not have the "AppointmentsDragging" event. I do however have the a "AppointmentsDraggingComplete" event that event fires when dragging between the same time slot but I can't tell where the the user dropped the appointment. For example if there are 3 appointments in the same time slot 1, 2, 3 I need to know that the user dragged appointment 2 and that the dropped it after appointment 3.
Any ideas?
Thanks,
Stephen
Hello Stephen,
Would the 'AppointmentsDragging' event of the control suit your needs? I tried it and it fired when I was 'moving' the appointment in the same timeslot.
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.
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.