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

Resource Colors and Resource Groups

4 Answers 166 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chuck
Top achievements
Rank 1
Chuck asked on 30 Mar 2016, 12:23 PM

Hi!

In the Timeline Demo, it shows 2 rooms and 3 attendees. When the data is plotted, it shows the color of the rooms assigned in the Resource. Is it possible to display the color that is associated with the attendees instead?

 

Chuck

4 Answers, 1 is accepted

Sort by
0
Chuck
Top achievements
Rank 1
answered on 31 Mar 2016, 02:09 AM
I believe that I need to create a custom event template and change the color based on a value from my model. However, how do I set the color for the entire "k-event"? If I exaggerate the colors (just to illustrate), I get the following:
0
Chuck
Top achievements
Rank 1
answered on 31 Mar 2016, 02:11 AM
I meant to also attach my sample event template...
0
Accepted
Vladimir Iliev
Telerik team
answered on 01 Apr 2016, 07:37 AM
Hi Chuck,

Please note that modification of the base color of the events will require custom solution. For example you can use the "DataBound" event of the Scheduler to iterate over the available events and manually set it's background color. Another option is to create entirely custom view which to modify the base event template in order to show the color of the second resource (example of creating custom view). 

Regards,
Vladimir Iliev
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
Chuck
Top achievements
Rank 1
answered on 01 Apr 2016, 12:09 PM

Excellent.

I created the custom Event Template (not as complex as the one shown), set the desired class, then used the Databound event to use some simple JQuery to add my class to the div with the k-event and remove it from my template. 

Thanks!!

Chuck

Tags
Scheduler
Asked by
Chuck
Top achievements
Rank 1
Answers by
Chuck
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Share this question
or