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

Task Color based on Group

1 Answer 76 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Siddhartha
Top achievements
Rank 1
Siddhartha asked on 20 Dec 2016, 12:30 PM

Hi

As per the below example

http://demos.telerik.com/kendo-ui/scheduler/timeline

Task colour is given by Group 1 e.g. Meeting Room 1 have one colour and Meeting Room 2 have different colour for all inside group i.e. Alex, Bob,Charlies

i have requirement in which i want colour based on Second Group in this example i want separate colour for Alex, Bob and Charlies. not based on Meeting Rooms which is Group 1.

how we can achieve this

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 22 Dec 2016, 08:52 AM
Hello Siddhartha,

You will be able to achieve the desired using eventTemplate and applying conditional styling to that template. Here you will find a simple implementation of the above.

Note that the second Resource (in this case the Attendee) should not allow multiple values, as the resource on our demo does. If it does, I am afraid that you won't be able to use the conditional (resource) coloring of the templates.

Regards,
Veselin Tsvetanov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
Siddhartha
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or