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
19 days 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]
19 days 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
10 days 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]
10 days 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/

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