Hi,
My eventRendered code colours events based on whether they're part of a separate "selectedJobMasterIds" set (driven from other parts of the UI), and looks like:
onEventRendered(args: EventRenderedArgs): void {
let jobEvent: CalendarEvent = <CalendarEvent><unknown>args.data;
var colour = "green";
if (jobEvent.job.isClosed) {
colour = "darkgrey";
} else if (this.selectedJobMasterIds.has(jobEvent.jobMasterId)) {
colour = "#FF6A00";
}
args.element.style.backgroundColor = colour;
}
My eventClick does the following to add the event to the external selected list ("selectedJobMasterIds"), and then re-render everything:
this.selectedJobMasterIds.add(jobEvent.jobMasterId);
this.scheduleObj.refreshEvents();
The popup is the quick popup. It appears extremely briefly, before disappearing. I believe this is due to the refreshEvents() call.