DayPilot.Scheduler.eventResizeHandling

The eventResizeHandling property (string) specifies how the DayPilot.Scheduler.onEventResize event is handled by the JavaScript Scheduler component.

Declaration

DayPilot.Scheduler.eventResizeHandling

Possible Values

  • "Disabled" - event resizing is not allowed.

  • "Update" - updates the event position 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.Scheduler.api = 1 mode, it fires DayPilot.Scheduler.onEventResize.

  • "Notify" - updates the event position 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 drag-and-drop resizing. Use "JavaScript" with DayPilot.Scheduler.api = 1 when you want DayPilot.Scheduler.onEventResize to handle the resize on the client side.

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  eventResizeHandling: "Disabled",
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  eventResizeHandling: "Disabled",
  // ...
};

React

<DayPilotScheduler
  eventResizeHandling="Disabled"
  {/* ... */}
/>

Vue

<DayPilotScheduler
  eventResizeHandling="Disabled"
  <!-- ... -->
/>

See Also

DayPilot.Scheduler.onEventResize

DayPilot.Scheduler.api

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript