The best way to do this would be the following:
1. Create several context menu controls (one for each type of the event) .
2. Set EventClickHandling to JavaScript
3. In EventClickJavaScript, invoke the context menu you need based on the value stored in one of the tag fields (see DataTagFields property).
Example:
.ASPX<DayPilot:DayPilotCalendar ...
EventClickHandling="JavaScript"
EventClickJavaScript="showContextMenu(e);"
DataTagFields="eventtype"
/>
<DayPilot:DayPilotMenu ...
ClientObjectName="contextMenuLunch"
/>
<DayPilot:DayPilotMenu ...
ClientObjectName="contextMenuMeeting"
/>
<script type="text/javascript">
function showContextMenu(e) {
switch (e.tag("eventtype")) {
case "meeting":
contextMenuMeeting.show(e);
break;
case "lunch":
contextMenuLunch.show(e);
break;
}
}
</script>