New to Telerik UI for Blazor? Download Free 30-day trial
DatePicker - Calendar Cell Formatting
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
Loading the demo source code...please wait.
You can use the
CalendarCellRenderevent of the DatePicker to apply conditional styling on its calendar cells based on a certain criteria. The
CalendarCellRenderevent 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
tdelement based on your business logic. You can also customize the DatePicker calendar header through the header template.
This DatePicker Calendar Cell Formatting example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.