We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Events color

Thread ID:





141886 Jan 9,2019 02:22 PM UTC Mar 15,2019 06:35 AM UTC ASP.NET MVC - EJ 2 5
Tags: Schedule
Asked On January 9, 2019 02:22 PM UTC

Hy guys,

Using EJ2 Scheduler, VS2017...

Can I use different colors to render different events? I mean, default color is blue, can I changed it?


Replied On January 10, 2019 01:35 PM UTC

Hi Karthigeyan,

It is a little bit time consuming to do it, I'll give a try after developing other project's features...

Many thanks!

BTW, do you have a sample to export appointments (.ics file)?

Karthigeyan Krishnamurthi [Syncfusion]
Replied On January 11, 2019 05:01 AM UTC

Thanks for your update. 
In the below sample, event color is customized using EventRendered event in a simple way. 
@Html.EJS().Schedule("schedule").Width("100%").Height("650px").EventRendered("onEventRendered").EventSettings(new ScheduleEventSettings { DataSource = ViewBag.datasource }).SelectedDate(new DateTime(2018, 2, 15)).Render() 
function onEventRendered(args) { 
    var scheduleObj = document.getElementById('schedule').ej2_instances[0]; 
    applyCategoryColor(args, scheduleObj.currentView); 
function applyCategoryColor(args, currentView) { 
    let categoryColor = args.data.CategoryColor; // event field 
    if (!args.element || !categoryColor) { 
    if (currentView === 'Agenda') { 
        args.element.firstChild.style.borderLeftColor = categoryColor; 
    else { 
        args.element.style.backgroundColor = categoryColor; 
We have validated your requirement and we like to let you know that we have already logged a feature request on this and it can be tracked through our feedback portal below. 
It will be implemented in our upcoming Volume 1, 2019 main release which is expected to be rolled out by the mid of March 2019. 
If you have any more specification/suggestions to the feature request you can add it as a comment in the portal. 

Karthigeyan Krishnamurthi [Syncfusion]
Replied On March 14, 2019 12:31 PM UTC

Hi  Vanderlei,   
Export feature is included in Volume 1, 2019 beta. 

Karthigeyan Krishnamurthi [Syncfusion]
Replied On March 15, 2019 06:35 AM UTC

Hi Vanderlei,   
Please find the below Volume 1, 2019 beta download link. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon