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

Gradient colour for event

3 Answers 198 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kevork
Top achievements
Rank 2
Kevork asked on 14 Jan 2016, 04:22 AM

Hi,

 

I have applied different colours for different events but I need to show different gradient colours or 2 colours for each event. Is there any way to do this?

 

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 15 Jan 2016, 03:49 PM
Hi Kevork,

You could apply gradient to the scheduler events by using linear gradient in the CSS background property. As an example: 
.k-scheduler .k-event {
  background: -o-linear-gradient(bottom, #B55FEB 0%, #472B52 55%);
  background: -moz-linear-gradient(bottom, #B55FEB 0%, #472B52 55%);
  background: -webkit-linear-gradient(bottom, #B55FEB 0%, #472B52 55%);
  background: -ms-linear-gradient(bottom, #B55FEB 0%, #472B52 55%);
  background: linear-gradient(to bottom, #B55FEB 0%, #472B52 55%);
}


Regards,
Iliana Nikolova
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
Kevork
Top achievements
Rank 2
answered on 18 Jan 2016, 09:59 PM

Thanks for the answer. This solution will apply the same gradient colour for all events but I need different gradient colours for different events based on event's status. How can I achieve that?

 

Thanks in advance.

0
Iliana Dyankova
Telerik team
answered on 20 Jan 2016, 04:30 PM
Hi Kevork,

You could set different gradients in the same way as colors (for example by using eventTemplate). Take a look at this dojo which should give a basic idea.

Regards,
Iliana Nikolova
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
Scheduler
Asked by
Kevork
Top achievements
Rank 2
Answers by
Iliana Dyankova
Telerik team
Kevork
Top achievements
Rank 2
Share this question
or