The eventMenuClickCallBack() method executes the server-side EventMenuClick handler for an event context menu command using an AJAX CallBack.
DayPilot.Calendar.eventMenuClickCallBack(e, command, data)e (DayPilot.Event) - object reference
command (string) - command name
data (object) - custom data to be sent to the server-side event handler
This is a legacy server-side API used by ASP.NET WebForms, ASP.NET MVC, and Java integrations for event context menu commands.
The command argument usually matches the menu item's command value in DayPilot.Menu.items, and data lets you send extra values with the request.
dp.contextMenu = new DayPilot.Menu({
items: [
{
text: "Delete",
onClick: (args) => {
dp.eventMenuClickCallBack(args.source, "Delete", { confirmed: true });
}
}
]
});