Hi,
I use the MultiViewCalendar, and have a style for selected days. I let the user save those days, and apply them when he opens the calendar, with:
kendoCalendar.selectDates(dateArray);
The days get colorized as I styled them like:
#IdentificationName > .k-calendar-view > table > tbody > tr > td.k-state-selected .k-link {
background-color: lightgreen !important;
background-clip: padding-box !important;
box-shadow: inset 0 0 10px mediumseagreen;
color: black;
}
it works, except for the "today" day.
When I inspect, it seems, the framework has overwritten the "k-state-selected"-class with "k-today".
What happens then is, my selected days are green, but the selected day which is also the "today" day, is white with red border.
From Browser Dev Tools:
(Any other "selected" day:)
<td role="gridcell" class="k-state-selected" aria-selected="true"><a tabindex="-1" class="k-link" href="#" data-value="2024/3/1" title="Montag, 1. April 2024"></a></td>
(Today selected day:)
<td class="k-today" role="gridcell" id="IdentificationName_cell_selected" aria-selected="false"><a tabindex="-1" class="k-link" href="#" data-value="2025/1/5" title="Mittwoch, 5. Februar 2025">5</a></td>
How can I keep the green filling color of my selected class which gets loaded initally?
(and only add the red border in css for the "today selected day")
Thank you,
Best regards