The eventMoveHandling property (string) specifies how the monthly calendar component handles drag-and-drop event moving.
Declaration
DayPilot.Month.eventMoveHandlingPossible Values
"Disabled"- event moving is not allowed."Update"- updates the event position on the client side."PostBack"- fires the server-sideEventMoveaction using PostBack(ASP.NET WebForms only)."CallBack"- fires the server-sideEventMoveaction using CallBack(ASP.NET WebForms, ASP.NET MVC, and Java versions only)."JavaScript"- in DayPilot.Month.api =1mode, fires DayPilot.Month.onEventMove."Notify"- updates the event position on the client side and fires the server-sideEventMoveaction(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]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot