search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Drag and drop an event between resouces in resource view

Asked by John
12 years ago.

Hi,

How can I drag and drop an event between two resources in the Schedule resource view? I've got it working so I can move between dates on same resource, but the client wants to drag and drop between resources as well.

Thanks!

Comment posted by John
12 years ago.

Found out how...

Need to use e.NewResource in the EventMove handler, which gives the new resource ID when an event is moved

Comment posted by Dan Letecky
12 years ago.
If you use CallBack or PostBack handling, this is handled automatically for you.

If you call eventMovePostBack or eventMoveCallBack from your EventMoveJavaScrpt, you should not forget to pass newColumn variable.

The full declarations are:

DayPilotScheduler.eventMoveCallBack = function(e, newStart, newEnd, oldColumn, newColumn) { ... }

DayPilotScheduler.eventMovePostBack = function(e, newStart, newEnd, oldColumn, newColumn) { ... }
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.