DayPilot.Month.eventResizeHandling

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

Declaration

DayPilot.Month.eventResizeHandling

Possible Values

  • "Disabled" - event resizing is not allowed.

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

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

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

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

  • "Notify" - updates the resized event on the client side and fires the server-side EventResize action (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

DayPilot.Month.api

DayPilot.Month.onEventResize

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript