messages.actions Object

The configuration of the Gantt action messages. Use this option to customize or localize the Gantt action messages.

messages.actions.addChild String (default: "Add Child")

The text similar to "Add child" displayed as Gantt "add child" buttons.

Example

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  dataSource: [{
     id: 1,
     orderId: 0,
     parentId: null,
     title: "Task1",
     start: new Date("2014/6/17 9:00"),
     end: new Date("2014/6/17 11:00")
  }],
  messages: {
    actions: {
      addChild: "Add new Child"
    }
  }
});
</script>

messages.actions.append String (default: "Add Task")

The text similar to "Append" displayed as Gantt "append" buttons.

Example

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  dataSource: [{
     id: 1,
     orderId: 0,
     parentId: null,
     title: "Task1",
     start: new Date("2014/6/17 9:00"),
     end: new Date("2014/6/17 11:00")
  }],
  messages: {
    actions: {
      append: "Add new Task"
    }
  }
});
</script>

messages.actions.insertAfter String (default: "Add Below")

The text similar to "Add below" displayed as Gantt "add below" buttons.

Example

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  dataSource: [{
     id: 1,
     orderId: 0,
     parentId: null,
     title: "Task1",
     start: new Date("2014/6/17 9:00"),
     end: new Date("2014/6/17 11:00")
  }],
  messages: {
    actions: {
      insertAfter: "Add Task Below"
    }
  }
});
</script>

messages.actions.insertBefore String (default: "Add Above")

The text similar to "Add above" displayed as Gantt "add above" buttons.

Example

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  dataSource: [{
     id: 1,
     orderId: 0,
     parentId: null,
     title: "Task1",
     start: new Date("2014/6/17 9:00"),
     end: new Date("2014/6/17 11:00")
  }],
  messages: {
    actions: {
      insertBefore: "Add Task Above"
    }
  }
});
</script>

messages.actions.pdf String (default: "Export to PDF")

The text of "Export to PDF" button of the Gantt toolbar.

Example

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  dataSource: [{
     id: 1,
     orderId: 0,
     parentId: null,
     title: "Task1",
     start: new Date("2014/6/17 9:00"),
     end: new Date("2014/6/17 11:00")
  }],
  toolbar: [ "pdf" ],
  messages: {
    actions: {
      pdf: "PDF Export"
    }
  }
});
</script>
In this article