Is there any way of stopping the UltraDayView control from making duplicates of the appointments selected when a drag operation is commenced while the Control Key is depressed? I am looking in the source code now of the UltraDayView class but cannot see anything obvious to disable that particular behaviour.
Hello,
I have tested the following scenario with Infragistics 11.2 Service Release 1010 (base version), I have UltraDayView on the form with one appointment. I pressed “Ctrl” and started dragging the appointment (UltraDayView creates a copy of this appointment), I released the “Ctrl” key, without releasing the mouse, the copy of the appointment disappeared and the appointment gets new “location”. So the control works as I expected. To be more clear a have capture a video of my test and also I am attaching the sample which I had tested.
Please let me know if you have any further questions.
Thanks for your quick response but I think you missed my point. I do not want the copy behaviour at all. If the user depresses the Ctrl key and then clicks and drags the mouse with the Ctrl key still down I do not want a copy of the selected appointment/s to be made as soon as the mouse is released. I do not even want to see a second copy of the appointment in the UI as that will only confuse my users. Because an appointment in my system represents a very complex object hierarchy, simple drag-and-drop copying behaviour is not something that I wish to promote in the application.
My question was is there any way that I can stop this behaviour? Is there a property I can set or a event handler I can use in some way to stop the copy behaviour at all? Thank you.
Thank you. That is exactly the solution I was looking for.
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 ,
If you want to disable copying of appointment via Ctrl + drag-and-drop operation, you should handle AppointmentDragging event of the UltraDayView and to setting the value of e.AllowCopy to false.