This is a migrated thread and some comments may be shown as answers.
Adding child task to another task from withing the grid
2 Answers 10 Views
This is a migrated thread and some comments may be shown as answers.
Abhilash
Top achievements
Rank 1
Abhilash asked on 28 May 2015, 02:26 PM

Hi,

 

Following is my requirement

 1. On load the Gantt is initialized with a default set of tasks called activities

 2. each activities can have one or more child tasks

 3. The child task is added using a Add Task button just below the activity

 4. on click if Add task a new task is added as child to the activity preceeding the Add Task row

 

please find the screen shot attached.

 

I am able to achieve 1 & 3 from a UI perspective

the Add Task row is also a task which is restyled/ retemplated on databound based on a custom task type to remove other task related information and just show an add task link

 I am able to catch the add task click and also get the id of the row but i am not able to add a new task as a child programatically to the above activity

 

These are bits of code i have tried

 

function addTask(adderButtonRowId) {
    var gantt = $("#gantt").data("kendoGantt");
    var task = getNewTask(adderButtonRowId);
    var taskNew = new kendo.data.GanttTask(task);
    gantt.dataSource.add(taskNew);
}

 

However the UI is not rendered as expected. The getNewTask

 method returns a task object with attributes such as parentId, orderId and id set appropriately.

 

Any help appreciated.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Abhilash
Top achievements
Rank 1
answered on 28 May 2015, 02:47 PM
Please ignore this question, clicked post too early there is latest version of this question
0
Dimitar Terziev
Telerik team
answered on 01 Jun 2015, 06:25 AM
Hi,

I already answered to this query in duplicated forum thread created by you - #939457

Regards,
Dimitar Terziev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Gantt
Asked by
Abhilash
Top achievements
Rank 1
Answers by
Abhilash
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or