New to Telerik UI for Blazor? Download Free 30-day trial
Calendar - CellRender Event
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Today
Su | Mo | Tu | We | Th | Fr | Sa |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 |
- Cellrender.razor
Loading the demo source code...please wait.
Description
You can use the
CellRender
event of the Calendar to apply conditional styling on its cells based on a certain criteria. The CellRender
event fires when each cell in each view is about to render. It allows you to see which view it is in, what its date is, and you can set the Class
for the td
element based on your business logic. You can also customize the Calendar cells through their templates.