Home Unanswered Active Tags New Question

Drag and drop an event between resouces in resource view

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!

Asked by John 3 years ago.
Replies

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 John 3 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) { ... }
Comment posted by Dan Letecky 3 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java