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

Restrict the event to one week

Asked by prabhat
6 years ago.

Hi

In scheduler i want to restrict the creation ,resize and moving of the event in one week.
when i create an event from 20th to 24th of this month that event should not be resized to next week.

Thank you

Answer posted by Dan Letecky [DayPilot]
6 years ago.

You can customize the drag and drop operations using the real-time events:

https://api.daypilot.org/daypilot-scheduler-oneventmoving/
https://api.daypilot.org/daypilot-scheduler-oneventresizing/
https://api.daypilot.org/daypilot-scheduler-ontimerangeselecting/

If you want to forbid certain operations check the conditions in the event handler and set args.allowed = false if it doesn't meet the rules.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.