New to Telerik UI for Blazor? Download Free 30-day trial

DateRangePicker - Calendar Cell Formatting

  • Calendarcellformatting.razor
Loading the demo source code...please wait.

Style in ThemeBuilder

  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

Description

You can use the CalendarCellRender event of the DateRangePicker to apply conditional styling on its calendar cells based on a certain criteria. The CalendarCellRender 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 DateRangePicker calendar header through the header template.
This Blazor DateRangePicker 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.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.