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

Disable cells previous to the current datetime

Asked by Martin
11 days ago.

Is it possible to disable clicking on cells previous to the current datetime?

The goal is to only trigger the event creation with future times, not the past.

Thank you.

PS: In DayPilot Lite for JavaScript.

Answer posted by Dan Letecky [DayPilot]
10 days ago.

Unfortunately, DayPilot Lite doesn't support disabled cells. However, you can check the dates in onEventMove, onEventResize, and onTimeRangeSelect events handlers and call args.preventDefault() to cancel the operation if it doesn't meet the rules.

Comment posted by Martin
10 days ago.

Thanks for answering.

I'll try that.

Thanks.

New Reply
This reply is
Your name (optional):