dhtmlXScheduler.templates.event_class

The value for [event] passed when overloading dhtmlXScheduler.templates.event_class = function(start, end, event) {} in month view does not populate properly for multi-day events which span several weeks. For example, if you view an appointment running from July 1st through 31st in month view. The function is called for each rendering of the appointment per week - but only in the last rendering of the appointment does the [event] object properly get populated with name and extra values. I’m using an extra value in the [event] object to track what css style to use, but currently only the last drawn part of the appointment is getting the appropriate style in month view.

Problem was confirmed and fixed.
Fix will be included in next version of scheduler.
If you need it ASAP - you can use attached js file instead of original one.

codebase.zip (46.4 KB)