The eventMenuClickCallBack() method executes the server-side EventMenuClick handler for an event context menu command using an AJAX callback.
This only applies to ASP.NET WebForms, ASP.NET MVC and Java versions.
DayPilot.Scheduler.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 helper that lets client-side code trigger the server-side EventMenuClick action for an event context menu command.
The command argument identifies the selected menu action, and data lets you send additional values with the callback request.
dp.contextMenu = new DayPilot.Menu({
items: [
{
text: "Delete",
onClick: (args) => {
if (confirm("Are you sure?")) {
dp.eventMenuClickCallBack(args.source, "delete", { confirmed: true });
}
}
}
]
});