KENDO SCHEDULER DISABLE PAST DATES

Is there a way in KENDO SCHEDULER to disable those dates that have past already ?

1 answer

  • answered 2019-12-09 07:05 Carlos Martins

    Here is an example using a function to disable the dates.

    var schedCalendar = $('.k-scheduler-calendar.k-widget.k-calendar').data('kendoCalendar');
    console.log(schedCalendar);
    schedCalendar.setOptions({
    disableDates: function(date){
        var today = new Date();
                if (date < today ) {
                            return true;
                        } else {
                            return false;
    
    
        }
    }
    });