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
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.