Scheduleview Custom DragDropBehavior Source Slots?

2 posts, 0 answers
  1. Jason
    Jason avatar
    1 posts
    Member since:
    Apr 2013

    Posted 20 Feb 2014 Link to this post

    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?
  2. Kalin
    Kalin avatar
    1191 posts

    Posted 24 Feb 2014 Link to this post

    Hi Jason,

    With the current implementation of the ScheduleView and its DragDropBehavior is not possible to get that information. However I logged that as a feature request in our Feedback portal so you can easily vote and track its status on the following link:

    Hope this helps. If you have any other questions let us know.

  3. DevCraft banner
Back to Top