Dear dhtmlx team,
When inputting a multi-day event from a custom lightbox or deactivated lightbox (using dataprocessor) in Scheduler (latest), the Event is not displayed correctly (is being displayed as “daily-event” with time instead of a all-day-event). However using your lightbox the whole thing renders correctly.
We tracked down the error to a pre-render-event which somehow makes a difference when being called from a custom lightbox instead of the default one.
We think, this is a bug in dhtmlxscheduler.js _pre_render_events
Regards
P
Hello,
please provide the scheduler intialization code. That will help us to understand the issue.
Hi Alex,
we had to strip it down a bit and I am not quite sure it is still functional - but it should include everything we use to initialize.
Thank you for looking into this
P
scheduler_init.js.zip (1.01 KB)
In the previous message you have mentioned that you created “a custom lightbox” and “deactivated lightbox (using dataprocessor)”. It seems that provided code snippet doesn’t contain these methods.
hi Alex,
Line 23: scheduler.showLightbox = showLightbox; // overwriting the original showLightbox() method
Line 38: scheduler.config.edit_on_create = false; // disabled the lightbox on create
is what we did. That way we replacd the showLightbox method. I guess this is not how we were supposed to do it?
Regards
P
In case of using custom lightbox you should set _timed flag after the detail form is closed:
ev._timed = scheduler.is_one_day_event(ev);
Here ev is event object (var ev = scheduler.getEvent(id)).