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.
Declaration
DayPilot.Scheduler.eventMenuClickCallBack(e, command, data)Parameters
e(DayPilot.Event) - object referencecommand(string) - command namedata(object) - custom data to be sent to the server-side event handler
Notes
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.
Example
dp.contextMenu = new DayPilot.Menu({
items: [
{
text: "Delete",
onClick: (args) => {
if (confirm("Are you sure?")) {
dp.eventMenuClickCallBack(args.source, "delete", { confirmed: true });
}
}
}
]
});
DayPilot