Hi
I'm struggling with the styling of the calendar popup of the RadzenDatePicker.
I'm trying to adjust the background color of the header row and the dates.
But nothing I tried seems to have any effect.
What I've tried so far;
- using the ::DEEP pseudo-element on table elements in the ...razor.css file of the razor file that contains the datepicker.
::deep table {
background-color: aliceblue !important;
}
- using the ::DEEP pseudo-element on .rz-datepicker-calendar element in the ...razor.css file of the razor file that contains the datepicker.
::deep .rz-datepicker-calendar {
background-color: aliceblue !important;
}
- the best shot so far was adding a DateRender method to the DatePicker:
private void DateRender(DateRenderEventArgs args)
{
args.Attributes.Add("style", "background-color: #ff6d41; border-color: white;");
}
But this only changes the backgound color of the dates, not the headers..
Surely there must be a simple way to achieve this.
Thnx in advance for your help
Henk