Yellow background in day and week schedule

Hi Radzen team.

I am using the schedule component and I'm wondering how the colouring of the yellow background is working. I've set on the RadzenDayView the StartTime & EndTime properties for example 08:00 - 20:00 gives me a yellow background from 9am to 7pm

If I set the properties 10am to 1pm then everything has the yellow background and there seems to be no padding of slots i.e like the 8am to 9am slot and 7pm to 8pm in the above screenshot.

Is it possible to control the yellow background? It would be a nice feature to be able to define the startTime & endTime properties i.e. my entire day is 8am to 8pm, (renders all the slots) then be able to define open hours 9am to 5pm (which renders the yellow background)

Look forward to hearing from you.

I usually look at the repository to figure out what is going on under the hood so I searched the repository for you and found this example where it seems you can use the OnSlotRender() method to customize the background color.

Hope it helps.

1 Like