Completed
Last Updated: 09 Jul 2019 08:34 by ADMIN
Niki
Created on: 01 Jul 2019 06:35
Category: Scheduler
Type: Feature Request
0
Color of event
Possibility to customise each event's color
3 comments
ADMIN
Dimiter Topalov
Posted on: 09 Jul 2019 08:34
Hi Niki,

You can use a block (e.g. DIV) element that will occupy the whole parent element. You can either set the width to 105% (for the Bootstrap theme):

https://stackblitz.com/edit/angular-ctwcmg?file=app/app.component.ts

... or overwrite the built-in event styling coming from the themes for a more generic solution that will work with all themes, e.g.:

encapsulation: ViewEncapsulation.None,
    styles: [`
      kendo-scheduler .k-event, .k-event {
        padding-right: 0;
      }
    `]

https://stackblitz.com/edit/angular-ctwcmg-ygheg3?file=app/app.component.ts

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Niki
Posted on: 02 Jul 2019 14:19

I need to change the background color of single events setting the title.

I have tried putting a span color red but with kendo bootstrap theme it has a blue border.

regards

Niki

ADMIN
Dimiter Topalov
Posted on: 02 Jul 2019 11:21
Hello Niki,

Thank you for submitting this feature request. However, customizing the events and resources layout (including the background and other coloring) is already available.

You can use the Event template to customize the appearance (including the coloring) of the events based on some other property, or other custom logic. 

Here are a couple of runnable demos, illustrating this approach:

https://www.telerik.com/kendo-angular-ui-develop/components/scheduler/api/EventTemplateDirective/

https://stackblitz.com/edit/angular-ymytpx-cuqgky?file=app/app.component.ts

Please make sure to use the latest available version of the Scheduler package that contains all currently available features, enhancements, and fixes:

https://www.telerik.com/kendo-angular-ui-develop/components/scheduler/changelog/

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.