Hi,
I am using Scheduleview in a TimelineView to implement a job assignment interface. My resources are the employees and the appointments are acting as the jobs.
Behavior I am trying to achieve:
An appointment is assigned to (resource) "A" and "B". I would like to be able to override the drag drop behavior so that if you drag the instance of the appointment from employee "B" down to employee "C" the result is the appointment assigned to the resource "A" and "C".
So far I have created a custom dragdropbehavior and have been able to successfully override the logic so that when you click and drag it adds the destination resource to the job, but I am unable to remove the resource from which I've dragged. To be clear:
In my overridden Drop routine I am grabbing the state.DestinationSlots and checking to see if the resource of the destination slots exists in the appointment, and if not add the resource to the appointment. Where I am stuck is I need to know which slot the drag originated from so that I know which resource to remove from the appointment. Is there such a way to access the source slots?
I am using Scheduleview in a TimelineView to implement a job assignment interface. My resources are the employees and the appointments are acting as the jobs.
Behavior I am trying to achieve:
An appointment is assigned to (resource) "A" and "B". I would like to be able to override the drag drop behavior so that if you drag the instance of the appointment from employee "B" down to employee "C" the result is the appointment assigned to the resource "A" and "C".
So far I have created a custom dragdropbehavior and have been able to successfully override the logic so that when you click and drag it adds the destination resource to the job, but I am unable to remove the resource from which I've dragged. To be clear:
In my overridden Drop routine I am grabbing the state.DestinationSlots and checking to see if the resource of the destination slots exists in the appointment, and if not add the resource to the appointment. Where I am stuck is I need to know which slot the drag originated from so that I know which resource to remove from the appointment. Is there such a way to access the source slots?