selectDates

Gets/Sets the selected dates for the multiViewCalendar.

Parameters

dates Array

A list of the dates to be selected.

Returns

Array The currently selected dates.

Important: This method requires the selectable: "multiple" option to be set.

Example - gets the selected dates of the widget

<div id="multiViewCalendar"></div>
<script>
    $("#multiViewCalendar").kendoMultiViewCalendar({
        selectDates: [new Date(2013, 10, 10), new Date(2015, 10, 10)],
        selectable: "multiple"
    });

    var multiViewCalendar = $("#multiViewCalendar").data("kendoMultiViewCalendar");

    var value = multiViewCalendar.selectDates();
</script>

Example - sets the value of the widget

<div id="multiViewCalendar"></div>
<script>
    $("#multiViewCalendar").kendoMultiViewCalendar({
        selectDates: [new Date(2013, 10, 10), new Date(2015, 10, 10)],
        selectable: "multiple"
    });

    var multiViewCalendar = $("#multiViewCalendar").data("kendoMultiViewCalendar");

    multiViewCalendar.selectDates([new Date(2016, 10,10), new Date()]);
</script>
In this article