3 Answers, 1 is accepted
0
Hello Masa,
A possible solution is to create a custom template via the month.content configuration as in the below demo:
Below you will find a small sample which demonstrates the above approach:
Regards,
Georgi
Progress Telerik
A possible solution is to create a custom template via the month.content configuration as in the below demo:
Below you will find a small sample which demonstrates the above approach:
Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Masa
Top achievements
Rank 1
answered on 19 Oct 2018, 05:00 PM
Thank you for your response. It works on the text level background.
I should have been more specific but looking for a way to do it by modifying the 'td' element's class, the parent class of the cell's text (span) element.
such as:
<td class="k-other-month yellow">
<a>30</a>
</td>
is the td's class element accessible?
0
Accepted
Hello Masa,
Currently the date picker does not have a configuration for setting a class to the cell element. However, you could style the template to cover the whole cell.
e.g.
Below you will find a small sample which demonstrates the above approach:
Regards,
Georgi
Progress Telerik
Currently the date picker does not have a configuration for setting a class to the cell element. However, you could style the template to cover the whole cell.
e.g.
.yellow {
background-color
: yellow;
width
:
100%
;
height
:
100%
;
}
.k-calendar-container [data-role=
"calendar"
] .k-link,
.k-calendar-container [data-role=
"calendar"
] td,
.k-calendar-container [data-role=
"calendar"
] tr {
margin
:
0
;
padding
:
0
;
}
Below you will find a small sample which demonstrates the above approach:
Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.