Double Click On Sizer Between Layout Cells

Hi,
For a dhtmlxLayout with cell a having a width of 290, is there an easy way to set an event so that if the user double clicks on the divider between cell a and cell b, that it will toggle the width between 290 and 0 for cell a?
Cheers,
Alex

Hi
If you mean collaple the cell, it is dafault behaviour. If you doubleclick on the cells separator, you will collaple your 290px cell a to 0px (but + header). Then you doubleclick on this separatpr again and it will expand your cell till 290px.

Darya,
For some reason, it does not work for me. Do you see a reason in the code below or have any idea what I need to do differently?

documentLayout = new dhtmlXLayoutObject("documents", "2U", dhtmlx_theme); documentLayout.cells("a").setWidth(230); documentLayout.cells("a").hideHeader(); dhxAccord = documentLayout.cells("a").attachAccordion();

Cheers,
Alex

It happens because you hide header. Try to avoid this operation.