Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by murmur on Dec 21, 2009 01:41
open dhtmlx forum
Multi-Day Events from non-default lightbox not being displayed correctly

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
Answer posted by Alex (support) on Dec 21, 2009 02:10

Hello,

please provide the scheduler intialization code. That will help us to understand the issue. 

Answer posted by murmur on Dec 21, 2009 02:24
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
Attachments (1)
Answer posted by Alex (support) on Dec 21, 2009 02:53
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. 
Answer posted by murmur on Dec 21, 2009 04:39
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
Answer posted by Alex (support) on Dec 21, 2009 08:13

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)).