New to Kendo UI for jQuery? Start a free 30-day trial
Getting Started with the Calendar
Updated on May 21, 2025
This guide demonstrates how to get up and running with the Kendo UI for jQuery Calendar.
After the completion of this guide, you will achieve the following end result:
Loading ...
1. Create an Empty Div Element
First, create an empty div element from which the component will be initialized.
html
<div id="calendar"></div>
2. Initialize the Calendar
In this step, you'll initialize the Calendar component from the empty <div> element.
html
<div id="calendar"></div>
<script>
$("#calendar").kendoCalendar();
</script>
3. Enable Selection
You can enable the selection functionality by setting the selectable property of the Calendar to true.
html
<div id="calendar"></div>
<script>
$("#calendar").kendoCalendar({
selectable: true
});
</script>
4. Enable Week Numbers
You can enable the week column by setting the weekNumber property of the Calendar to true.
html
<div id="calendar"></div>
<script>
$("#calendar").kendoCalendar({
selectable: true,
weekNumber: true
});
</script>
5. Configure the Month Template
You can change the appearance of the dates by using the month configuration.
html
<div id="calendar"></div>
<script>
$("#calendar").kendoCalendar({
selectable: true,
weekNumber: true,
month: {
content: ({ value }) => {
if(value > 20) {
return `<div class='k-bg-primary k-rounded-md k-text-white'>${value}</div>`;
}
return value;
}
}
});
</script>