New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Day Template
Updated over 6 months ago
The MultiViewCalendar enables you to customize the rendered day for the month view.
The following example demonstrates how to create a MultiViewCalendar by using a custom template.
Razor
    @(Html.Kendo().MultiViewCalendar()
        .Name("MultiViewCalendar")
        .MonthTemplate("<div class='custom'><#=data.value#></div>")
    )The template wraps the value in a <div> HTML element. The structure of the data object that is passed to the template function.
JS
    data = {
        date: date, // A date object that corresponds to the current cell.
        title: kendo.toString(date, "D"),
        value: date.getDate(),
        dateString: "2011/0/1" // The formatted date by using the yyyy/MM/dd format and the month is zero-based.
    };