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

Disable cells previous to the current datetime

Asked by Martin
6 years 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]
6 years 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
6 years ago.

Thanks for answering.

I'll try that.

Thanks.

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