This is a migrated thread and some comments may be shown as answers.

Scheduleview Custom DragDropBehavior Source Slots?

1 Answer 41 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 20 Feb 2014, 03:44 PM
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?

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 24 Feb 2014, 02:39 PM
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:
http://feedback.telerik.com/Project/143/Feedback/Details/120388-make-possible-to-find-out-from-which-resource-the-dragging-operation-has-started

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

Regards,
Kalin
Telerik
Tags
ScheduleView
Asked by
Mike
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or