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

Restrict event drag-and-drop to a specific time window per event

Asked by Iliah
23 hours ago.

Hi,

I'm building a production scheduler where each event has a valid time window (defined by material arrival date and cut deadline). I need to restrict drag-and-drop so that an event cannot be moved outside this window.

Is there a built-in way to constrain event movement to a specific time range per event? Or should I handle this in onEventMoved by validating and reverting if the new position is outside the allowed corridor?

Any examples or best practices would be appreciated.
BRG
Iliah

Answer posted by Dan Letecky [DayPilot]
10 hours ago.

Hi Iliah,

You can use the onEventMoving event handler to provide real-time feedback during drag and drop (see also event moving customization).

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):