I have 3L dhtmlxLayout, and also i have grid in cell a as well as cell b.
var dhxLayout;
listGrid;
ngrid;
function doOnLoad() {
dhxLayout = new dhtmlXLayoutObject(document.body, ‘3L’);
dhxLayout.attachHeader(‘my_logo’);
dhxLayout.attachFooter(‘my_copy’);
listGrid = dhxLayout.cells('a').attachGrid();
listGrid.selMultiRows = true;
listGrid.setImagePath('codebase/imgs/');
listGrid.setSkin('light');
listGrid.setMultiLine(false);
listGrid.loadXML('step3.xml?etc=' new Date().getTime());
plangrid = dhxLayout.cells('b').attachGrid();
plangrid.selMultiRows = true;
plangrid.setImagePath('codebase/imgs/');
plangrid.setSkin('light');
plangrid.setMultiLine(false);
plangrid.loadXML('step1.xml?etc=' new Date().getTime());
listGrid.enableDragAndDrop(true);
plangrid.enableDragAndDrop(true);
}