The onEventRightClick event is fired when a user clicks the calendar event using a right mouse button.
This event is fired before the default action specified using eventRightClickHandling property.
See also the onEventRightClicked event which is fired after the default action.
DayPilot.Calendar.onEventRightClick(args);
dp.onEventRightClick = args => {
if (args.e.data.type === "readonly") {
args.preventDefault();
}
};onEventRightClick(e)