Force repaint

Hi,

Is there any way to repaint the background image? Now I’ve red background image on weekends, but I want to do it dynamically for other days (holidays…).

When I do scheduler.load(…) all the events are painted, but the background isn’t, just on view changing is the background being painted.

scheduler.templates.month_date_class = function(date, today) { if (date.getDay() == 0 || date.getDay() == 6) return "weekend"; if(isHolidaysDay(date)) return "weekend"; return ""; };

Thanks.

You can call

scheduler.setCurrentView(scheduler._date);

It will repaint current view, both scales and events.

Thanks :slight_smile: