I have a window attach the layout. the layout attach the Grid, now it can show the layout, but cannot show the grid.
q1 : window can attach second layer or else.
q2 : the grid copy from other page, but the grid can not show in second layer, if the code is corrected, why cannot show out in window.
thank you for your help.
[code]dhxWins = new dhtmlXWindows();
dhxWins.attachViewportTo(document.body);
dhxWins.vp.style.border = "#a4bed4 1px solid";
dhxWins.vp.style.borderRadius = "2px";
w1 = dhxWins.createWindow("w1", 420, 50, 420, 550);
w1.setText("Edit Department Form");
w1.button("close").enable();
myLayout2 = w1.attachLayout("2E");
myLayout2.cells("a").hideHeader();
myGrid = myLayout2.cells("a").attachGrid();
myGrid.setImagePath("dht/codebase/imgs/");
myGrid.setHeader("Dept ID, Dept Name");
myGrid.setInitWidths("60,*");
myGrid.setColAlign("left,left");
myGrid.setColTypes("ro,ro");
myGrid.setColSorting("str,str");
myGrid.init();
myGrid.loadXML("php/connector/deptConnector.php");[/code]