scheduler load mode previous/next 3 months

Hi ,
is there a way to load the next/previous 3 months using setLoadMode ?
thanks

Hello.

You could try to use uncommon value for setLoadMode but you should define “mode”_start function and handle date.add of your “mode”.
For example:

scheduler.date.threeMonth_start = function(date){
            date.setDate(1);
            return scheduler.date.date_part(date);
};

var oldAdd = scheduler.date.add;
        scheduler.date.add = function(date,inc,mode){
            if(mode == "threeMonth"){
                var newDate = new Date(date);
                newDate.setMonth(newDate.getMonth()+inc*3);
                return newDate;
            }
            return oldAdd.apply(scheduler.date, arguments);
};

scheduler.setLoadMode("threeMonth");