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

Scheduler grouping

Asked by Anonymous
2 days ago.

How does the scheduler header grouping work.

For example if we have an event that is 2 days long and we group by year, month, week - the event shows up in 8 consecutive weeks i.e. 56 days when it is infact only 2 days long.

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

The time header groups have no effect on the grid or events. The time header is independent and it’s just a visual clue.

How events are displayed is affected by the scale and whether event boxes are enabled.

By default, the Scheduler uses event boxes that are aligned with the grid cells. If you want to display exact duration (at pixel level), you need to use useEventBoxes: "Never".

Comment posted by Anonymous
1 day ago.

Sorry for being stupid but how are Scale and Duration and Cell related as we are completely lost.

Thanks

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

The pixel start and end position of an event is calculated from the timeline. It always corresponds to the event start and end time.

The only case when it doesn’t correspond is when you use event boxes. In that case the pixel start is changed to the cell start and the pixel end is changed to the cell end. So that is the first thing to check.

If you set useEventBoxes: "Never" and the pixel position doesn’t correspond to the time it might be because some custom CSS that overrides the element position/dimensions. You can test that by temporarily turning off the global CSS.

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