The eventMenuClickPostBack() method executes the server-side EventMenuClick handler for an event context menu command using a PostBack (ASP.NET WebForms only).
DayPilot.Calendar.eventMenuClickPostBack(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 when event context menu commands are submitted using PostBack.
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.eventMenuClickPostBack(args.source, "Delete", { confirmed: true });
}
}
]
});