Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1179
Control+Drag to create new appointments when using a databound schedule
posted

Hi,

I have a schedule which is bound to a list of objects. Everything is working quite well, but I'm not sure how to achieve something. We'd like to use the press control and drag feature to create new appointments, but I need to be able to instantiate the backing objects explicitly, as they can't have a default constructor. Ideally I wish to copy a subset of the information in the source appointments bindinglistobject into the new object. I can handle the BeforeAppointmentAdded event, create then insert the objects in the backing list, and cancel the add, but that stops the drag to copy feature working. Also, I'm not sure how to access the source appointments if I do this. Any pointers to how I should do it?