DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » How To » Drag and drop an event between resouces in resource view

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!

John - 6/26/2008 8:59:25 PM

Found out how...

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

John - 6/27/2008 12:23:49 AM
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) { ... }
Dan Letecky - 6/27/2008 9:31:35 PM
Post reply