MarkTimespan problem

Hi,

In the image attached, I tried to add a MarkTimespan on Oct 21st Monday, but it also added on Oct 14th Monday. In debugger I made sure the inputs are correct and I also noticed this behavior only happens on week view Mondays. It draws on the targeted Monday and its previous Monday. Is this a known issue? This MarkTimespan code is called in “onViewChange” event.

Thanks,
Nick


I just did a test on one of the sample files comes with the package. It has the same behavior that I am experiencing. In this example, it highlights both 2009/5/29 and 2009/5/22. Is there a way I can fix this issue in the source code?

\dhtmlxScheduler_v40_pro_130813\samples\03_extensions\25_advanced_limitation.html

I added the following script:

scheduler.attachEvent(“onViewChange”, function (mode, date) {
scheduler.markTimespan({
start_date: new Date(2009,5,29,9),
end_date: new Date(2009,5,29,11),
css: “highlight_section”
})
});

and in style, I added:

.highlight_section {
background-color: #009fda;
opacity: 0.35;
border: 1px solid #009fda;
}

Thanks for the problem report.
We can confirm the issue, fix will be included in the next update.

Hello,
the issue must have been fixed. If you need a fix now, please check the attached build
dhtmlxScheduler_131105.zip (193 KB)

Hi,

I’ve downloaded and installed the 5 nov 2013 scheduler files, but with no result. The markTimeSpan for 10.3.2014 also show up on 3.3.2014. Any hints ?

Hi,

could you specify the configuration of the marked timespan you add?
And, maybe too simple, did you clean the cache after replacing files from archive?

I’ve cleared the cache and I’m testing the example as described above in the forum by nchange on 31 Oct 2013 6:52 pm

\dhtmlxScheduler_v40_pro_130813\samples\03_extensions\25_advanced_limitation.html

I added the following script:

scheduler.attachEvent(“onViewChange”, function (mode, date) {
scheduler.markTimespan({
start_date: new Date(2009,5,29,9),
end_date: new Date(2009,5,29,11),
css: “highlight_section”
})
});
In addition to that I’ve noticed that a resize of the browser window (style full screen) does not redraw the markTimespan.