Hello Joel,
Here is how to achieve the desired appearance now:
https://blazorrepl.telerik.com/mgYoEROB54IvgEfO54
<TelerikCalendar @bind-Date="@CalendarDate"
Views="@CalendarViews"
Orientation="@CalendarOrientation.Vertical"
Class="with-month-labels" />
<style>
.with-month-labels .k-calendar-table {
margin-top: 1.8em;
}
.with-month-labels .k-calendar-table::before {
position: absolute;
top: -1.5em;
display: block;
width: 100%;
text-align: center;
color: var(--kendo-color-primary);
}
@for (int i = 0; i < CalendarViews; i++)
{
<text>
.with-month-labels .k-calendar-monthview .k-calendar-table:nth-child(@(i + 1))::before {
content: "@CalendarDate.AddMonths(i).ToString("MMMM yyyy")";
}
.with-month-labels .k-calendar-yearview .k-calendar-table:nth-child(@(i + 1))::before {
content: "@CalendarDate.AddYears(i).ToString("yyyy")";
}
</text>
}
</style>
@code {
private DateTime CalendarDate { get; set; } = DateTime.Today;
private int CalendarViews { get; set; } = 3;
}
Regards,
Dimo
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.