Is it possible to attach a grid with “enableAutoHeight” to a dhxLayout?
dhxLayout = new dhtmlXLayoutObject(document.body, "2E");
dhxLayout.cells("a").setText("Main Page");
dhxLayout.cells("b").setText("Site Navigation");
mygrid = dhxLayout.cells("b").attachGrid();
mygrid.setImagePath("./dhtmlx/dhtmlxSuite/imgs/");
mygrid.setSkin("dhx_skyblue");
mygrid.enableAutoHeight(true);
mygrid.init();
mygrid.loadXML("XML-URL");
In this example, the grid appears without a scrollbar but the Layout does not expand to the size of the grid. Is there a way to also enable auto height to the layout or maybe to get the full height of the grid after loading and then change the size of the layout?