How to access Scheduler cell and fill in cells with color?

1 Answer 32 Views
Scheduler
yuki
Top achievements
Rank 2
Iron
Iron
Iron
yuki asked on 24 Jan 2024, 07:26 AM

Hi, I have a Timeline view RadScheduler, and I would like to access some of the cells based on resource name and time slot.
Please see the image for reference.
I searched forums and most questions are about how to set the background color of time slots, and I checked documentation the time slot represents the whole row/column of a specific time for all resources. But in my case I only want to set the time slot of specified resource, aka a single cell or coulple of cells.
Could anyone help me?

1 Answer, 1 is accepted

Sort by
0
Vasko
Telerik team
answered on 26 Jan 2024, 01:41 PM

Hi Yuki,

The way to access the timeslots on the server-side is in the OnTimeSlotCreated.

By the time the timeslots are created, you already have the appointments populated so you can decide if a Timeslot needs to be customized based on its start and end times.

Another option is to customize the timeslots on the client side. Then you can iterate over the appointments and based on the appointment's start and end, find the timeslots in the given timeframe:

I hope this helps you out.

Regards,
Vasko
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
yuki
Top achievements
Rank 2
Iron
Iron
Iron
commented on 01 Feb 2024, 04:08 AM

Thank you Vasko! I'll try and see.
Tags
Scheduler
Asked by
yuki
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vasko
Telerik team
Share this question
or