Debian Codegraph @

dojox/grid/tests/test_data_grid_large_flex_cells.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.DataGrid Large Data Set with Flex cells</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
7 <style type="text/css">
8 @import "../../../dojo/resources/dojo.css";
9 @import "../resources/Grid.css";
10 @import "../resources/tundraGrid.css";
11 body {
12 font-size: 0.9em;
13 font-family: Geneva, Arial, Helvetica, sans-serif;
14 }
15 .heading {
16 font-weight: bold;
17 padding-bottom: 0.25em;
18 }
19 #grid {
20 width: 100%;
21 height: 25em;
22 }
23 </style>
24 <script type="text/javascript" src="../../../dojo/dojo.js"
25 data-dojo-config="isDebug:false, parseOnLoad: false"></script>
26 <script type="text/javascript">
27 dojo.require("dijit.dijit");
28 dojo.require("dojox.grid.DataGrid");
29 dojo.require("dojo.data.ItemFileWriteStore");
30 dojo.require("dojo.parser");
31 </script>
32 <script type="text/javascript" src="support/test_data.js"></script>
33 <script type="text/javascript">
34 // a grid layout is an array of views.
35 var layout = [
36 [
37 { name: 'Column 0', field: 'id', width: '10%' },
38 { name: 'Column 1', field: 'col1', width: '10%' },
39 { name: 'Column 2', field: 'col2', width: '10%' },
40 { name: 'Column 3', field: 'col3', width: '10%' },
41 { name: 'Column 4', field: 'col4', width: '20%' },
42 { name: 'Column 5', field: 'col5', width: '10%' },
43 { name: 'Column 6', field: 'col6', width: '10%' },
44 { name: 'Column 7', field: 'col7', width: '10%' },
45 { name: 'Column 8', field: 'col3', width: '10%' }
46 ]
47 ];
48 // Set to true in order to kick off profiling startup and resizes in
49 // firebug
50 var doProfiling = false;
51
52 dojo.addOnLoad(function(){
53 doProfiling = dojo.isMoz && doProfiling;
54 if(doProfiling){
55 console.profile("Startup/Creation");
56 window.profiling = true;
57 }
58 dojo.parser.parse();
59 grid.connect(window, "onresize", function(){
60 if(doProfiling){
61 console.profile("Resize");
62 window.profiling = true;
63 }
64 this.resize();
65 if(doProfiling){
66 window.setTimeout(function(){
67 console.profileEnd();
68 delete window.profiling;
69 }, 1000);
70 }
71 });
72 if(doProfiling){
73 window.setTimeout(function(){
74 console.profileEnd();
75 delete window.profiling;
76 }, 1000);
77 }
78 });
79 </script>
80 </head>
81 <body class="tundra">
82 <div class="heading">dojox.grid.DataGrid Large Data Set Test with Flex Cells</div>
83 <table dojoType="dojox.grid.DataGrid"
84 data-dojo-id="grid" id="grid" columnReordering="true"
85 store="test_store" query="{ id: '*' }" rowsPerPage="20" structure="layout">
86 <thead>
87 <tr>
88 <th field="name" width="300px">Country/Continent Name</th>
89 <th field="type" width="auto">Type</th>
90 </tr>
91 </thead>
92 </table>
93 </body>
94 </html>