Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jeff on Oct 16, 2009 05:26
open dhtmlx forum
two grids in one layout cell

Hi

I already asked and you answered :

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


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

Thanks
Answer posted by Alex (support) on Oct 16, 2009 08:03

Hello, 

the function has been added to the latest version 2.5. 

If you want to use 2.1, you can use the following method to add layout into the cell:

var sub_layout = new dhtmlXLayoutObject(dhxLayout.cells("a"), "2E");

Answer posted by Jeff on Oct 16, 2009 08:57
Thank you, it works very well !