search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Task moveDisabled

Asked by J Carlos
5 years ago.

How to set property moveDisabled to false on Task gantt in the onBeforeTaskRender function

Answer posted by Dan Letecky [DayPilot]
5 years ago.

In the Gantt chart, each task is displayed in a separate row - which can be moved as well (in the tree hierarchy).

That's why the properties are separate for the row (data.row) and the box in the grid (data.box). In order to prevent task moving in the grid use data.box.moveDisabled = false:

dp.tasks.list = [{
  id: 1
  start: "2016-01-01T09:00:00",
  end: "2016-01-01T13:00:00",
  text: "Task 1",
  box: {
    moveDisabled: true
  },
  row: {
    html: "Task 1 (important)"
  }
}];

See also http://api.daypilot.org/daypilot-task-data/

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.