Adding child task to another task from withing the grid

3 posts, 0 answers
  1. Abhilash
    Abhilash avatar
    8 posts
    Member since:
    Jan 2014

    Posted 28 May 2015 Link to this post

    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. Abhilash
    Abhilash avatar
    8 posts
    Member since:
    Jan 2014

    Posted 28 May 2015 Link to this post

    Please ignore this question, clicked post too early there is latest version of this question
  3. Kendo UI is VS 2017 Ready
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 01 Jun 2015 Link to this post

    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!
     
Back to Top