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

Drag and select default (without holding shift key)

Asked by Henry
6 years ago.

Is there any way we can set the default behaviour if you click and drag in a blank area (i.e. no event) to be to start the free multiselect? We don't want to have to explain to our users to they'll have to hold down the shift key to initiate it.

We're not using the drag to create event option, just fyi.

Sorry for all the questions... don't worry, we're going to buy a license this week. :) You have a great product!

Answer posted by Dan Letecky [DayPilot]
6 years ago.

You can change the behavior using onGridMouseDown event handler:
https://api.daypilot.org/daypilot-scheduler-ongridmousedown/

Example:
dp.onGridMouseDown = function(args) {
  args.action = "RectangleSelect";
};

Questions are welcome! ;-)

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