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

Drag and Drop

Hi All,

Is it possible to Drag and drop an item to create a new event?

Regards

AS

Anonymous - 5/8/2007 5:03:21 PM
Yes, absolutely.

1. You can use TimeRangeSelected event. This event is fired after a user selects a free time range using click & drag. See the documentation for time range selecting.

2. It is also possible to use EventMove event to create a "copy" functionality - new event is be created at the target location when an existing event is moved.

See the event moving documentation section. Instead of modifying the start and end time for the existing event you can create a new one using e.NewStart, e.NewEnd and e.NewColumn properties (properties of EventMoveEventArgs).
Dan Letecky - 5/8/2007 5:48:26 PM
Post reply