Hi Michael,
Thanks for using Syncfusion products.
In order to set the marker color based on the criteria, you can override the GetMarkers() to define the criteria and color for the marker in the ScheduleDataProvider overridden class.
Code Snippet
public class SimpleScheduleDataProvider : ScheduleDataProvider
{
ListObjectList markerList;
/// <summary>
/// Default constructor.
/// </summary>
public SimpleScheduleDataProvider()
: base()
{
markerList = this.MarkerList;
}
....
....
....
public override ILookUpObjectList GetMarkers()
{
return MarkerLists();
}
private ListObjectList MarkerLists()
{
markerList = new ListObjectList();
markerList.Add(new ListObject(0, "InProgress", Color.FromArgb(50, Color.Yellow))); ////same as noMarkColor
markerList.Add(new ListObject(1, "Done", Color.Green));
markerList.Add(new ListObject(2, "Busy", Color.Violet));
markerList.Add(new ListObject(3, "Out of Office", Color.Tomato));
return markerList;
}
}
Image
Sample Link
Regards,
Pavithra K.