Attach two grid in one layout cell

Hi,



I just want to attach two grid in one layout cell.



I’ve tried :















mygrid = new dhtmlXGridObject(‘gridbox1’);

mygrid2 = new dhtmlXGridObject(‘gridbox2’);

dhxLayout.cells(“c”).attachObject(“gridbox”);





and



mygrid = dhxLayout.cells(“c”).attachGrid();

mygrid2 = dhxLayout.cells(“c”).attachGrid();





but nothing is working, is it possible to attach two grid in one cell ?



Regards,



Jeff

You can use
var sub_layout = dhxLayout.cells(“c”).attachLayout(“2E”);
sub_layout.cells(“a”).attachGrid();
sub_layout.cells(“b”).attachGrid();

Technically, the first solution with html code for both grids and attachObject is also correct, and must work. But sizing of grids in such case will be a pain.

Thanks for your answer.

I work with the version 2.1 and it seems that “attachLayout” isn’t a function of the cell object. What can I do ?