This is a migrated thread and some comments may be shown as answers.

Different Appointment-Backgrounds for one Appointment with multiple resources

3 Answers 61 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 25 Aug 2015, 04:28 PM

Hello

how is it possible to achieve different background / display colors for one appointment with multiple resources?
For example one appointment for one doctor but also for physiotherapy, OP and surgery at the same time. We now see the one appointment in all these resource columns, which is correct. We would also like this one appointment to have all different background colors pertaining to the individual resources (in properties for the resources defined).

Sincerely,
A.Kasar

3 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 26 Aug 2015, 06:29 AM
Hello,

Please refer to our Appointment color based on resource SDK example.This example demonstrates how you can apply different color for the same appointment according to the assigned resources.

More about our SDK example you can read here.

Regards,
Rosi
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Alex
Top achievements
Rank 1
answered on 26 Aug 2015, 09:08 AM

Hello, 

Thank you very much for your quick reply and helpful example which we looked at in depth.

However, the example is not quite what we were looking for. It has three fixed resources and hence three fixed colors.

I on the other hand need a dynamic listing of resources and pertaining colors.
I have generated a CustomResource with property "color".
Exactly this color I would like to have bound to the appointment as background color depending on the column the resource is in.
Perhaps it would be possible to give the ResourcesToResourceConverter a dynamic resource as parameter? However, I do not know how to do that.

 

Sincerely,
A.Kasar​

0
Rosi
Telerik team
answered on 28 Aug 2015, 08:37 AM
Hello,

Please attached updated example illustrating how you can achieve the desired behavior using custom Resource implementation with additional property about the appointment color.

Hope this helps.

Regards,
Rosi
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Alex
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Alex
Top achievements
Rank 1
Share this question
or