On an UltraMonthViewSingle, I have Drag and Drop so when an appointment gets moved the UI shows the appointment disappearing and moving to a different location. I want the original appointment to remain and a new appointment to be created (aka duplicate the current appointment on new dates. Therefore, during the Drag process, I want the original appointment not to move in the UI (easy enough to make new appointment after drop but it would be more intuitive to user to see both appointments simultaneously or else user thinks original appointment is moving to another date which we don't want (we want multiple appointments created not an appointment move).
I know in code, I can handle the drag and drop and copy but I would like the UI to show the original appointment while the new appointment is moving.
I tried setting AllowCopy = true during Appointment Dragging but didn't do anything as far as I could tell.
Is this possible and what is the trick.
Hello,
Yes, the sample requires Control key held down in order to copy and drag appointment, on this way user could drag existing appointment, in order to change its start time or owner, or just could drag and copy appointment. If drag works as Ctrl+Drag, then customer will not be able to use mouse in order change start date of the appointment or its owner and this might be very confusing for them.
Ctrl+Drag is building functionality of the schedule components, which you could allow or disallow. So if you want dragging to works as Ctrl+Drag, you should handle OnAppointmentsDragging event, check if the dragging phase is “Beginning” and if so to add a copy of the dragged appointment to the AppointmentColection of UltraCalendarInfo.
Another option could be in OnAppointmentsDragging event telling to Operation System that Control key was held down, so customer will not need to hold Control key to drag and copy appointment. I have implemented this suggestion in the attached sample.
I hope that this will helps you.
How do you set the Drag Drop Effects to copy without holding down the Control Key? I want drag drop without holding down control key to copy?
I want to change the default effects. The sample requires the control key to be held down to get the drag & copy behavior as far as I could tell.
Hello ,
Very similar issue was already discussed on the following link:
http://es.infragistics.com/community/forums/t/84968.aspx#424789
and I’ve already provided such sample where this Ctrl+Drag works on the way that you have described. So please run the sample and let me know if this is what you are looking for.
Please let me know if you have any further questions.