navigate
Fires when calendar navigates.
Example - subscribe to the "navigate" event during initialization
<div id="calendar"></div>
<script>
$("#calendar").kendoCalendar({
navigate: function() {
var view = this.view();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(view.name); //name of the current view
var current = this.current();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(current); //currently focused date
}
});
</script>
Example - subscribe to the "navigate" event after initialization
<div id="calendar"></div>
<script>
$("#calendar").kendoCalendar();
var calendar = $("#calendar").data("kendoCalendar");
calendar.bind("navigate", function() {
var view = this.view();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(view.name); //name of the current view
var current = this.current();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(current); //currently focused date
});
</script>