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

Modify end datetime in beforeEventRender

Asked by tom
5 years ago.

I would like to add 5 minutes to the end time of every event when displaying on the scheduler to allow for 5 minutes between events. Is there a way to change the end date in the beforeEventRender? I am doing so, but the event is being displayed with the original end time.

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

Unfortunately, it's not possible to change event start/end in onBeforeEventRender. You'd have to modify the data source before assigning it to dp.events.list.

It might be more convenient to do it on the server side.

You can use onBeforeEventRender to highlight these segments using custom active areas (see also https://doc.daypilot.org/scheduler/event-phases/).

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