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?
Hello,
Could you let me know which of our schedule controls you're working with? Also, which version of NetAdvantage are you using, which version of Visual Studio, and which language are you programming in?
I'm using visual studio 2012 with netadvantage for winform 2012.1, and the particular project this came up in is in VB.Net. I'm using the month day and week controls synced with a calendar info, and also one of the multi month controls to allow picking a particular date.
So, for example, if the user is looking at the single month view they might select three appointments on different days. They would then hold down the control key, and drag them a couple of days forward. Instead of rescheduling the selected appointments, this would make a copy of them at the new date/times
Thank you for this information. Just so I'm starting on the same page as you, would you be able to provide a sample project that demonstrates what you're trying to do? You can attach the ZIPped project by selection the Options tab when creating a post.
Not immediately, as I'm tied up on another project at the moment. As soon as I get a chance I'll try to put a simple example together