DayPilot.Calendar.eventMenuClickCallBack

The eventMenuClickCallBack() method executes the server-side EventMenuClick handler for an event context menu command using an AJAX CallBack.

Declaration

DayPilot.Calendar.eventMenuClickCallBack(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 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.

Example

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

See Also

DayPilot.Calendar.contextMenu

DayPilot.Menu.items

DayPilot.Calendar.eventMenuClickPostBack()

DayPilot.Calendar Class