<link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxwindows.css">
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxwindows_dhx_skyblue.css">
<script src="../../codebase/dhtmlxcommon.js"></script>
<script src="../../codebase/dhtmlxwindows.js"></script>
<script src="../../../dhtmlxGrid/codebase/dhtmlxgrid.js"></script>
<script src="../../../dhtmlxGrid/codebase/dhtmlxgridcell.js"></script>
<link rel="stylesheet" type="text/css" href="../../../dhtmlxGrid/codebase/dhtmlxgrid.css">
<link rel="stylesheet" type="text/css" href="../../../dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_skyblue.css">
<script src="../../../dhtmlxTreeGrid/codebase/dhtmlxtreegrid.js"></script>
<script src="../../codebase/dhtmlxcontainer.js"></script>
<div id="winVP" style="position: relative; height: 500px; border: #cecece 1px solid; margin: 10px;"></div>
<script>var dhxWins,
w1,
grid;
function doOnLoad() {
dhxWins = new dhtmlXWindows();
dhxWins.enableAutoViewport(false);
dhxWins.attachViewportTo("winVP");
dhxWins.setImagePath("../../codebase/imgs/");
w1 = dhxWins.createWindow("w1", 20, 30, 400, 350);
w1.setText("Attaching dhtmlxTreeGrid");
grid = w1.attachGrid();
grid.setSkin("dhx_skyblue");
grid.setImagePath("../../../dhtmlxGrid/codebase/imgs/");
grid.setHeader("Model,Qty,Price");
grid.setInitWidths("*,50,50");
grid.setColAlign("left,right,right");
grid.setColSorting("str,int,int");
grid.setColTypes("tree,ed,price");
grid.enableAlterCss("a", "b");
grid.init();
grid.loadXML("../common/treegrid.xml");
}
</script>