DayPilot.Scheduler.useEventBoxes

Sets the event box alignment mode (see Exact Event Duration). 

Declaration

DayPilot.Scheduler.useEventBoxes (string)

Possible Values

  • "Always" - events will be wrapped in a box that is aligned with the grid
  • "ShortEventsOnly" - the boxes will be used for events shorter than one cell
  • "Never" - events will be rendered at the exact start/end position

Description

If event boxes are used, the event start and end is aligned with the cells (time slots). The real event length is then indicated by the duration bar.

If you want to control the alignment of the event with the grid during drag and drop please see DayPilot.Scheduler.snapToGrid.

Default Value

"Always"

Example

dps.useEventBoxes = "ShortEventsOnly";