Updates a Gantt task.


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

  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")


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

  document.write(task.title); // outputs "New Title"
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(task.title); // outputs "New Title"
In this article