Hi Matt,
Thanks for contacting Syncfusion support.
As per your requirement, we suggest you to maintain a custom field in an appointment object. Based on this custom field value, we can customize the element inside QueryCellInfo event. The below code explains to maintain custom fields in object.
In Appointment Object:
<Code>
new SampleData {
Id = 1 ,
Subject = "Turtle Walk",
Description = "Night out with turtles",
StartTime = new DateTime(2017, 3, 6, 5, 30, 0),
EndTime = new DateTime(2017, 3, 6, 7, 30, 0),
AllDay = false,
Recurrence = false,
QueryCellType = "Admin"
},
</Code>
In QueryCellInfo Event:
<Code>
<script type="text/javascript">
function onQueryCellInfo(args) {
if (args.requestType == "appointment") {
if (args.appointment.QueryCellType == "Admin") {
args.element.css({ background: "green" });
}
else {
args.element.css({ background: "lightgreen" });
}
}
}
</script>
</Code>
We had prepared a sample based on your requirement, which can be download from following location.
Kindly check the above sample and revert us with further details, if we have misunderstood your requirement.
Regards,
Sellakumar K