DayPilot.Gantt.taskMoveHandling

The taskMoveHandling property (string) enables horizontal task moving using drag and drop in the JavaScript Gantt Chart and specifies how the action is handled.

Declaration

DayPilot.Gantt.taskMoveHandling

Possible Values

  • "Disabled" - task moving is not allowed.

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

  • "PostBack" - fires the TaskMove event on the server side (ASP.NET WebForms).

  • "CallBack" - fires the TaskMove event on the server side (ASP.NET WebForms, ASP.NET MVC, Java only).

  • "JavaScript" - legacy api=1 option that fires onEventMove.

  • "Notify" - updates the task position on the client side and notifies the server in ASP.NET WebForms, ASP.NET MVC, and Java versions.

Default Value

"Update"

Examples

JavaScript

const gantt = new DayPilot.Gantt("dp", {
  taskMoveHandling: "Disabled",
  // ...
});
gantt.init();

Angular

<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
  taskMoveHandling: "Disabled",
  // ...
};

React

<DayPilotGantt
  taskMoveHandling="Disabled"
  {/* ... */}
/>

Vue

<DayPilotGantt
  taskMoveHandling="Disabled"
  <!-- ... -->
/>

See Also

DayPilot.Gantt.onTaskMove

DayPilot.Gantt.onTaskMoved

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript