Sample: dhtmlxLayoutExpanding/Collapsing CellsdhtmlxLayout main page
X
Item:
 
 
<script>
 
    // initialization of the layout
    var dhxLayout = new dhtmlXLayoutObject("parentId", "3L");
    ...
    // expanding
    dhxLayout.cells("a").expand();
    // collapsing
    dhxLayout.cells("a").collapse();
</script>