change working of add button

Hi,

I am creating more than 100 tasks, So each time I want to create a new task at the parent level. I have to scroll at the top for adding the task.

So What i think is if we click on the add icon, i get a popup and in that i select the indent level of the task.

Is it possible? If yes please provide some sample code .

what i want to do is if i click on the add icon of the task1 and select the level to be of parent,

then the gantt should add task of the level project in the gantt.

I had tried various options,but none worked.

ex: first was to use moveTask, then tried to change the parent and renderedparent properties of the task.

http://docs.dhtmlx.com/gantt/snippet/4608a91a

I have to scroll at the top for adding the task.

Hello,

In this case changing the parent id should be enough:

gantt.attachEvent("onLightboxSave", function(id, task, is_new) { if(task.task_level_type==1){ task.parent = gantt.config.root_id; } return true; });
docs.dhtmlx.com/gantt/snippet/bc62d30e