| 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 Basic</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("dijit.dijit"); |
| 31 | dojo.require("dojox.grid.DataGrid"); |
| 32 | dojo.require("dojo.data.ItemFileWriteStore"); |
| 33 | dojo.require("dojo.parser"); |
| 34 | </script> |
| 35 | <script type="text/javascript" src="support/test_data.js"></script> |
| 36 | <script type="text/javascript"> |
| 37 | var layout = [[ |
| 38 | new dojox.grid.cells.RowIndex({ width: 5 }), |
| 39 | {name: 'Column 1', field: 'col1'}, |
| 40 | {name: 'Column 2', field: 'col2'}, |
| 41 | {name: 'Column 3', field: 'col3'}, |
| 42 | {name: 'Column 4', field: 'col4', width: "150px"}, |
| 43 | {name: 'Column 5', field: 'col5'} |
| 44 | ],[ |
| 45 | {name: 'Column 6', field: 'col6', colSpan: 2}, |
| 46 | {name: 'Column 7', field: 'col7'}, |
| 47 | {name: 'Column 8'}, |
| 48 | {name: 'Column 9', field: 'col3', colSpan: 2} |
| 49 | ]]; |
| 50 | </script> |
| 51 | </head> |
| 52 | <body class="tundra"> |
| 53 | <div class="heading">dojox.grid.Grid Basic Test</div> |
| 54 | <div data-dojo-id="grid" id="grid" dojoType="dojox.grid.DataGrid" |
| 55 | store="test_store" query="{ id: '*' }" |
| 56 | structure="layout" rowSelector="20px"></div> |
| 57 | </body> |
| 58 | </html> |