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
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 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 for your help this event should do what I need it to do.
Hello,
Then I could suggest you to use MoseUp event, it will fires for sure after drop operation complete. So you could check if the mouse was released onto appointment (
Appointment app = ultraDayView1.GetAppointmentFromPoint(e.Location);) in order to decide how you will reorder your appointments.
I hope that this will helps you.
I am using version 7.1.20017.1061
Hello,
I am just checking about the progress of this issue. Let me know If you need any further assistance on this issue?
Thank you for using Infragistics Components.
Hello ,
Could you please let me know which exactly version of Infragistics you are using.
I am waiting for your details.