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

Show resource unavailability based on time-range not on cells

Asked by Steve S.
1 month ago.

Hi,

We have a use case where we need to display that some resource is unavailable in some time period. Marking cells as unavailable is not sufficient, because cell duration is 1 hour and unavailability could last for 39 minutes i.e.
It's more like a feature to render an area in global scheduler view, not cell itself. I am not aware of possibility to implement this.

How do you suggest to do this? Thanks

Answer posted by Dan Letecky [DayPilot]
1 month ago.

It's possible to implement custom rules using onEventMoving, onEventResizing and onTimeRangeSelecting events:

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

If the target position doesn't meet your rules you can forbid it by setting args.allowed to false.

See also some examples here:
https://doc.daypilot.org/scheduler/event-moving-customization/

New Reply
This reply is
Your name (optional):