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

Scheduler - Disable Cells based on resource Availability

Asked by Adrian
10 months ago.

Hello,

Working with the scheduler component and I was wondering what would be the best approach to disabling cells for resources if each resource is defined with its own availability schedule for each day of the week?

ex)

Resource 1: Mon (7am-7pm), Tues (1am-9am, 12pm-8pm) —> Sunday

Resource 2: Mon (12am-12pm),Tues (8am-3pm, 3pm-11pm) —> Sunday

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

There is a tutorial that explain how to implement this:

It uses onBeforeCellRender event handler to disable individual cells. The resource-specific date ranges are stored in the resources[] array.

The tutorial uses full start/end dates (holidays) but you should be able to modify it to use more general rules like in your example.

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