Hello, I have an issue with displaying dependencies.
Not working example is here: http://dojo.telerik.com/alifO/5
First task and Second task are dependent ones, but no dependency is displayed in Gantt.
How to provide dependencies as java script array in correct way?
Script code:
Not working example is here: http://dojo.telerik.com/alifO/5
First task and Second task are dependent ones, but no dependency is displayed in Gantt.
How to provide dependencies as java script array in correct way?
Script code:
var _dependencies = new kendo.data.GanttDependencyDataSource({ schema: { model: { id: "id", fields: { id: { from: "id", type: "string" }, predecessorId: { from: "predecessorId", type: "string" }, successorId: { from: "successorId", type: "string" }, type: { from: "type", type: "number" } } } } }); var _deps = [{"id":1,"predecessorId":"5003d0fb-c6e9-4ddd-aaca-f9871eb51d30_7","successorId":"5003d0fb-c6e9-4ddd-aaca-f9871eb51d30_8","type":1}];_dependencies.data = _deps; $("#gantt").kendoGantt({ dataSource: new kendo.data.GanttDataSource({ data: [{"id":"5003d0fb-c6e9-4ddd-aaca-f9871eb51d30_1","title":"Deploy solution","start":"2015-02-08T22:00:00.000Z","end":"2015-02-26T22:00:00.000Z","percentComplete":0.1},{"id":"5003d0fb-c6e9-4ddd-aaca-f9871eb51d30_2","title":"Test deployed solution","start":"2015-02-27T22:00:00.000Z","end":"2015-03-01T22:00:00.000Z"},{"id":"5003d0fb-c6e9-4ddd-aaca-f9871eb51d30_3","title":"Move solution to staging","start":"2015-03-02T22:00:00.000Z","end":"2015-03-17T22:00:00.000Z","percentComplete":0.5},{"id":"5003d0fb-c6e9-4ddd-aaca-f9871eb51d30_7","title":"First task","start":"2015-02-07T22:00:00.000Z","end":"2015-02-09T22:00:00.000Z","percentComplete":0.15},{"id":"5003d0fb-c6e9-4ddd-aaca-f9871eb51d30_8","title":"Second task","start":"2015-02-10T22:00:00.000Z","end":"2015-02-14T22:00:00.000Z","percentComplete":0.58},{"id":"1010b897-cc7f-41be-b2d6-d464345abc05_1","title":"2 Move solution to new site collection","start":"2015-02-08T22:00:00.000Z","end":"2015-02-19T22:00:00.000Z"},{"id":"1010b897-cc7f-41be-b2d6-d464345abc05_2","title":"2 Test moved site collection","start":"2015-02-02T22:00:00.000Z","end":"2015-02-25T22:00:00.000Z"}], schema: { model: { id: "id", fields: { id: { from: "id", type: "string" }, parentId: { from: "parentId", type: "string", defaultValue: null }, start: { from: "start", type: "date" }, end: { from: "end", type: "date" }, title: { from: "title", defaultValue: "", type: "string" }, percentComplete: { from: "percentComplete", type: "number" } } } } }), dependencies: _dependencies, views: ["day", "week", {type:"month", selected:true}] });