dhtmlxLayout cells

Hi,

I’m using the “C1” pattern inside a dhtmlxWindow , Is it possible when i click a menu button to open another cell - (by that i mean change the pattern to “2U”) without unloading and reloading it?
Or is it possible to use “2U” from the beginning and hiding one cell until the button is clicked
(not by collapsing it)?

Thanks.

Hi,

The only solution is to use 2U initially and collapse the “b” cell:

dhxLayout = new dhtmlXLayoutObject(“parentId”, “2U”);
dhxLayout.cells(“b”).hideHeader()
dhxLayout.cells(“b”).collapse();

to show the second cell:

dhxLayout.cells(“b”).expand();
dhxLayout.cells(“b”).showHeader();