How to change color follow dataSource

Hi Support.

I'am have dataSource this have field or key "color". And i need change color Event tasks follow to dataSource field color. Thank.

This dataSource.

dataSource: [
{
Id: 34,
userID: 4,
ProjectName: "test112",
ProjectdetailName: "test112_detail",
MainTaskName: "requirement analysis",
Subject: "Q&A",
color: "#e1a885",
plan_progress: 100,
actual_progress: 0,
StartTime: "2021-09-17T03:03:38.000Z",
EndTime: "2021-09-17T04:03:29.000Z"
}
],

1 Reply

NR Nevitha Ravi Syncfusion Team September 20, 2021 11:10 AM UTC

Hi Jetniphan, 

Greetings from Syncfusion Support. 

You can use eventRendered event or template option to set color to appointment based on the custom field. Please refer to the following samples and UG to know more about it. 

Please let us know if you need any further assistance. 

Regards, 
Nevitha 


Loader.
Up arrow icon