Debian Codegraph @

dojox/grid/tests/test_grid_autorender.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <title>Test dojox.grid.Grid autoRender</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
7 <style type="text/css">
8 @import "../resources/Grid.css";
9 @import "../resources/tundraGrid.css";
10 @import "../../../dojo/resources/dojo.css";
11 @import "../../../dijit/themes/tundra/tundra.css";
12 body {
13 font-size: 0.9em;
14 font-family: Geneva, Arial, Helvetica, sans-serif;
15 }
16 .heading {
17 font-weight: bold;
18 padding-bottom: 0.25em;
19 }
20
21 #grid {
22 border: 1px solid #333;
23 width: 35em;
24 height: 30em;
25 }
26 </style>
27 <script type="text/javascript" src="../../../dojo/dojo.js"
28 data-dojo-config="isDebug:false, parseOnLoad: true"></script>
29 <script type="text/javascript">
30 dojo.require("dojox.grid.DataGrid");
31 dojo.require("dojo.data.ItemFileWriteStore");
32 dojo.require("dojo.parser");
33 </script>
34 <script type="text/javascript" src="support/test_data.js"></script>
35 <script type="text/javascript">
36 var layout = [[
37 new dojox.grid.cells.RowIndex({ width: 5 }),
38 {name: 'Column 1', field: 'col1'},
39 {name: 'Column 2', field: 'col2'},
40 {name: 'Column 3', field: 'col3'},
41 {name: 'Column 4', field: 'col4', width: "150px"},
42 {name: 'Column 5', field: 'col5'}
43 ],[
44 {name: 'Column 6', field: 'col6', colSpan: 2},
45 {name: 'Column 7', field: 'col7'},
46 {name: 'Column 8'},
47 {name: 'Column 9', field: 'col3', colSpan: 2}
48 ]];
49 var renderGrid = function(){
50 grid.render();
51 }
52 </script>
53 </head>
54 <body class="tundra">
55 <div class="heading">dojox.grid.Grid autoRender Test</div>
56 <div data-dojo-id="grid" id="grid" dojoType="dojox.grid.DataGrid"
57 store="test_store" query="{ id: '*' }"
58 structure="layout" rowSelector="20px" autoRender="false"></div>
59 <button onclick="renderGrid()">Render the grid</button>
60 </body>
61 </html>