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

Different cell splitting for different events in same scheduler

Asked by Elias
1 year ago.

Basically we are building a scheduling solution where we show:

  • Leaves (in full days and half days)
  • Shifts in full days display only

We would like to use the half-day display for leaves, but shift should always cover the whole cell.

At the moment we use the time cutoff for leaves at noon, to force half-day displays, but then the same happens with shifts, although we do not want that, we want shifts to cover the whole cell even if they start after noon, or end before noon.

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

You probably know that during drag and drop operations, you can adjust the target range using the real-time events (onTimeRangeSelecting, onEventMoving, onEventResizing) so you are able to change the start/end depending on your requirements.

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

However, it looks like you only want to change the display. The Scheduler can align the event boxes with the cell grids (https://doc.daypilot.org/scheduler/exact-event-duration/). This is is a global option but it might be possible to make it customizable per event.

Please let me know if this is what you are looking for.

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