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

Scheduler - Is it possible to show whole days, although cell duration is half-day

Asked by Anonymous
1 year ago.
I'm using the following configuration to set the grid cell size to half-day
scale: 'CellDuration',
cellDuration: 720,

Nevertheless I want to hide the line between the two halfs of a day. See please the attached image. Is this possible?

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

You can use onBeforeGridLineRender to hide selected grid lines in the Scheduler:
https://api.daypilot.org/daypilot-scheduler-onbeforegridlinerender/

You can also use a different approach - set scale to "Day" and implement custom snap-to-gird rules:
https://code.daypilot.org/39403/javascript-scheduler-customized-snap-to-grid

Comment posted by Anonymous
1 year ago.

If I set the scale to "Day", then I'm not able to show half-day events. Is this the normal behaviour or am I doing something wronge?

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

By default, events are aligned with the grid cells. You can customize this behavior using "useEventBoxes" property:
https://doc.daypilot.org/scheduler/exact-event-duration/

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