| 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</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, #grid2 { |
| 20 | width: 65em; |
| 21 | height: 25em; |
| 22 | padding: 1px; |
| 23 | } |
| 24 | </style> |
| 25 | <script type="text/javascript" src="../../../dojo/dojo.js" |
| 26 | data-dojo-config="isDebug:false, parseOnLoad: true"></script> |
| 27 | <script type="text/javascript"> |
| 28 | dojo.require("dijit.dijit"); |
| 29 | dojo.require("dojox.grid.DataGrid"); |
| 30 | dojo.require("dojo.data.ItemFileWriteStore"); |
| 31 | dojo.require("dojo.parser"); |
| 32 | </script> |
| 33 | <script type="text/javascript" src="support/test_data.js"></script> |
| 34 | <script type="text/javascript"> |
| 35 | // a grid layout is an array of views. |
| 36 | var layout = [ |
| 37 | [ |
| 38 | { name: 'Column 0', field: 'id' }, |
| 39 | { name: 'Column 1', field: 'col1' }, |
| 40 | { name: 'Column 2', field: 'col2' }, |
| 41 | { name: 'Column 3', field: 'col3', width: '150px' }, |
| 42 | { name: 'Column 4', field: 'col4' } |
| 43 | ], |
| 44 | [ |
| 45 | {name: 'Column 5', field: 'col5' }, |
| 46 | {name: 'Column 6', field: 'col6' }, |
| 47 | {name: 'Column 7', field: 'col7' }, |
| 48 | {name: 'Column 8', field: 'col3', colSpan: 2} |
| 49 | ] |
| 50 | ]; |
| 51 | </script> |
| 52 | </head> |
| 53 | <body class="tundra"> |
| 54 | <div class="heading">dojox.grid.DataGrid Large Data Set Test</div> |
| 55 | <table dojoType="dojox.grid.DataGrid" |
| 56 | data-dojo-id="grid" id="grid" |
| 57 | store="test_store" query="{ id: '*' }" rowsPerPage="20" structure="layout" rowSelector="20px"> |
| 58 | <thead> |
| 59 | <tr> |
| 60 | <th field="name" width="300px">Country/Continent Name</th> |
| 61 | <th field="type" width="auto">Type</th> |
| 62 | </tr> |
| 63 | </thead> |
| 64 | </table> |
| 65 | </body> |
| 66 | </html> |