Overnight Event


I am wondering if this scenario is possible to configure on the scheduler.

We have custom recurrence schedules in our implementation and when the scheduler loads it pulls them from our database.

Some of our recurrence patterns we have are, for example, [24 hours on, 48 hours off] or [48 hours on, 96 hours off]. I am wondering if it is possible to make the calendar show events only on the day that the event begins.

Here is an example: The recurrence pattern is 24 hours on, 48 hours off, 24 hours on, 96 hours off starting at 8:30am on Feb 1st. This would result in these kinds of events:

08:30 Feb 1st - 08:30 Feb 2nd (then 48 hours off)
08:30 Feb 4th - 08:30 Feb 5th (then 96 hours off)
08:30 Feb 9th - 08:30 Feb 10th (then 48 hours off)

And the pattern just repeats. Here is how the calendar renders that pattern: http://screencast.com/t/pRIk846SGd

We would like it to show events not spanned across two days like that (even though the events are indeed happening in two separate days). Instead, we’d like it to show the event in only the day that the event began.

This is the ideal rendering: http://screencast.com/t/KH3c3eSos

If anyone has any ideas, I would be very thankful to hear them!

Thank you,


There is no native solution, try to add the next on the page

scheduler.is_one_day_event = function(){
return true;

it may solve case partially, but if you need a full solution - you can contact sales@dhtmlx.com about product customization.

We are nearly there - http://screencast.com/t/WXbNVjANL

As you can see, most of the events are looking just fine, but it seems to be getting a little confused on the events that start on Saturday and end on Sunday. Any tips there?

Here is the code I actually put in there so it didn’t have an effect on our other views:

scheduler.is_one_day_event = function(){
    if(scheduler.getState().mode == "month") 
        return true;

Related to this, is there a solution to overnight events displaying in the week and day views?

Example: DHTMLXScheduler: http://screencast.com/t/jLTS3r7RaXI6
Outlook: http://screencast.com/t/ywBFdeqZ

Unfortunately it can be changed only through code modification

locate method _pre_render_events_table and in it replace

if (ev._sday+ev._length<=cols){


if (true){

is there a solution to overnight events displaying in the week and day views?
Not in this version, but we already have in dev. version - will be available as part of next version.

That did it! You have been extremely helpful. Thanks a lot!

I’ll be looking forward to the next version so that we can have the functionality in day and week views. I thought I saw somewhere that the next version was going to be in April, is that still accurate?

Thanks again!

Yep, we plan to release it in March-April 2012