DayPilot.Month.eventMoveHandling

The eventMoveHandling property (string) specifies how the monthly calendar component handles drag-and-drop event moving.

Declaration

DayPilot.Month.eventMoveHandling

Possible Values

  • "Disabled" - event moving is not allowed.

  • "Update" - updates the event position on the client side.

  • "PostBack" - fires the server-side EventMove action using PostBack (ASP.NET WebForms only).

  • "CallBack" - fires the server-side EventMove action using CallBack (ASP.NET WebForms, ASP.NET MVC, and Java versions only).

  • "JavaScript" - in DayPilot.Month.api = 1 mode, fires DayPilot.Month.onEventMove.

  • "Notify" - updates the event position on the client side and fires the server-side EventMove action (ASP.NET WebForms, ASP.NET MVC, and Java versions only).

Default Value

"Update"

Notes

Set "Disabled" to turn off drag-and-drop moving.

The legacy "JavaScript" mode works with DayPilot.Month.api set to 1 and fires DayPilot.Month.onEventMove.

Examples

JavaScript

const month = new DayPilot.Month("dp", {
  eventMoveHandling: "Disabled",
  // ...
});
month.init();

See Also

Event Moving [doc.daypilot.org]

DayPilot.Month.api

DayPilot.Month.onEventMove

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript