Edit this page

update

Updates a Gantt task.

Parameters

task kendo.data.GanttTask

The task to be updated.

taskInfo Object

The new values, which will be used to update the task.

Example - update the title of a task

<script>
  var dataSource = new kendo.data.GanttDataSource({
    data: [
      {
        id: 1,
        orderId: 0,
        parentId: null,
        title: "Task1",
        summary: true,
        start: new Date("2014/6/17 9:00"),
        end: new Date("2014/6/17 11:00")
      }
    ]
  });

  dataSource.fetch();

  var task = dataSource.at(0);
  dataSource.update(task, { title: "New Title" });

  document.write(task.title); // outputs "New Title"
  console.log(task.title); // outputs "New Title"
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy