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

Disable left Click in Day Pilot Schedule

Asked by Anonymous
13 days ago.

I want to disable left click in Day Pilot Scheduler and want to add an event on the right click.

2 other people also want an answer.
Answer posted by Dan Letecky [DayPilot]
11 days ago.

Unfortunately, this is not supported in the ASP.NET version of the Scheduler. In the JavaScript version, it's possible to customize the behavior using onGridMouseDown:

https://api.daypilot.org/daypilot-scheduler-ongridmousedown/

The implementation could look like this:

dp.onGridMouseDown = function(args) {
  if (args.button === "left") {
    args.action = "None";
  }
  if (args.button === "right") {
    args.action = "TimeRangeSelect";
  }
};
New Reply
This reply is
Your name (optional):