This event lets you customize the JavaScript Scheduler grid mouse down behavior.
This is the default setting:
Standard mouse down: By default, the mousedown event starts time range selecting (if it is enabled).
Shift + mouse down: If a rectangle selection is active (rectangleSelectHandling is set to a value other than "Disabled") and the users hold a Shift key, rectangle selecting is activated.
Related demo:
DayPilot.Scheduler.onGridMouseDown(args)args.action ("None" | "RectangleSelect" | "TimeRangeSelect") - action to be started
args.button ("left" | "right") - the active mouse button (since version 2018.4.3438)
args.ctrl (boolean) - status of the Ctrl key
args.end (DayPilot.Date) - the end of the cell under the mouse position (available since 2025.4.6746)
args.meta (boolean) - status of the Meta key
args.originalEvent (Event) - the original mousedown event object
args.preventDefault() - cancels the action (sets the args.action to "None")
args.row (DayPilot.Row) - the row under the mouse position (available since 2025.4.6746)
args.shift (boolean) - status of the Shift key
args.start (DayPilot.Date) - the start of the cell under the mouse position (available since 2025.4.6746)