The eventResizeHandling property (string) specifies how the monthly calendar component handles drag-and-drop event resizing.
Declaration
DayPilot.Month.eventResizeHandlingPossible Values
"Disabled"- event resizing is not allowed."Update"- updates the resized event on the client side."PostBack"- fires the server-sideEventResizeaction using PostBack(ASP.NET WebForms only)."CallBack"- fires the server-sideEventResizeaction using CallBack(ASP.NET WebForms, ASP.NET MVC, and Java versions only)."JavaScript"- in DayPilot.Month.api =1mode, fires DayPilot.Month.onEventResize."Notify"- updates the resized event on the client side and fires the server-sideEventResizeaction(ASP.NET WebForms, ASP.NET MVC, and Java versions only).
Default Value
"Update"Notes
Set "Disabled" to prevent users from resizing events using drag and drop.
The legacy "JavaScript" value works with DayPilot.Month.api set to 1 and fires DayPilot.Month.onEventResize.
Examples
JavaScript
const month = new DayPilot.Month("dp", {
eventResizeHandling: "Disabled",
// ...
});
month.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
eventResizeHandling: "Disabled",
// ...
};React
<DayPilotMonth
eventResizeHandling="Disabled"
{/* ... */}
/>Vue
<DayPilotMonth
eventResizeHandling="Disabled"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot