DayPilot.Scheduler.eventMenuClickCallBack

Executes the server-side EventMenuClick event using an AJAX callback.

Declaration

eventMenuClickCallBack(e, command, data)

Parameters

  • e (DayPilot.Event) - event reference
  • command (string) - command name
  • data (object) - custom data to be sent to the server-side event handler

Examples

DayPilot Pro for Java

dps.contextMenu = new DayPilot.Menu([
{ text:"Delete",
onclick: function() { if(confirm('Are you sure?')){ dps.eventMenuClickCallBack(this.source, 'delete'); } }
} ]);