DayPilot.Calendar.eventMenuClickPostBack

The eventMenuClickPostBack() method executes the server-side EventMenuClick handler for an event context menu command using a PostBack (ASP.NET WebForms only).

Declaration

DayPilot.Calendar.eventMenuClickPostBack(e, command, data)

Parameters

  • e (DayPilot.Event) - object reference

  • command (string) - command name

  • data (object) - custom data to be sent to the server-side event handler

Notes

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.

Example

dp.contextMenu = new DayPilot.Menu({
  items: [
    {
      text: "Delete",
      onClick: (args) => {
        dp.eventMenuClickPostBack(args.source, "Delete", { confirmed: true });
      }
    }
  ]
});

See Also

DayPilot.Calendar.contextMenu

DayPilot.Menu.items

DayPilot.Calendar.eventMenuClickCallBack()

DayPilot.Calendar Class