Hide the root task row

Hi there,

I’ve been trying to find a way to hide the root task row of my gantt control , but couldn’t yet achive this correctly.

I added the following CSS code :

[code]div[task_id=root] {

display: none;


This causes the root row to not be shown but the gantt is not rendred correctly. The first task is drawed in it’s original position (which is one row below what it should be).

Is there a way to achive this effectivly?

Thanks for any help!


Something like next will work

gantt.attachEvent("onBeforeTaskDisplay", function(id, task){ if (id == ROOT_ID) //set actual value here return false; return true; });

Thanks! that worked perfectly!