Can't see the Resources of Appointments in RadScheduler

1 Answer 57 Views
ScheduleView
Romano
Top achievements
Rank 1
Romano asked on 21 Dec 2022, 04:55 PM | edited on 21 Dec 2022, 05:04 PM

Hello,

I'm working on a project where I use the RadScheduler with the Timeline View. 
I've already added the Appointments and the Resources, but it displays only the Appointments.

The whole thing is going to be a "holiday" planer. So on the left side there are all the employees and on the right side their holidays in the calendar.

Basically there is only one ResourceType, "employee". For the ResourceName i simply use their employee number.

I have the Problem that I see the Appointments in the View, but I don't see the Resources.

On the Debug-Screenshot you can see that there is a Resource with the right Name and Type in each Appointment, so I guess the method works, but I can't see it in the view.

(I really do miss a very simple example Tutorial on the topic of assigning Resources to Appointments)

What am I doing wrong?

Thank you for your help.

Best regards

1 Answer, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 23 Dec 2022, 02:00 PM

Hello Romano,

Thank you for the provided images.

Based on them I prepared a small sample project in which I tried to recreate your setup.

If I correctly understand your requirement, the only thing missing from the code you shared is to actually add the created resources to the "Mitarbeiter" ResourceType:

                Resource mitarbeiteResource = new Resource(vorgang.MitarbeiterNr.ToString(), "Mitarbeiter");
                resourceTypen.Resources.Add(mitarbeiteResource);

Please also find attached the sample project I created which seems to display the resources as expected. Do have a look and let me know if this is indeed the desired result or if I have misunderstood your requirement in any way.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Romano
Top achievements
Rank 1
commented on 23 Dec 2022, 04:16 PM

Hey Dilyan,

your right that was the missing part O_o.

Thank you very much for your help. Now it seems clear but I tried so long to fix it :D.

Works like a charm now.

All the best to you and happy holidays (I hope you've got some over new year)

Regards
Tags
ScheduleView
Asked by
Romano
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or