| 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 Column Reordering</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 "../../../dojo/resources/dnd.css"; |
| 12 | @import "../../../dijit/themes/tundra/tundra.css"; |
| 13 | body { |
| 14 | font-size: 0.9em; |
| 15 | font-family: Geneva, Arial, Helvetica, sans-serif; |
| 16 | } |
| 17 | .heading { |
| 18 | font-weight: bold; |
| 19 | padding-bottom: 0.25em; |
| 20 | } |
| 21 | |
| 22 | #grid { |
| 23 | border: 1px solid #333; |
| 24 | width: 60em; |
| 25 | height: 30em; |
| 26 | } |
| 27 | </style> |
| 28 | <script type="text/javascript" src="../../../dojo/dojo.js" |
| 29 | data-dojo-config="isDebug:false, parseOnLoad: true"></script> |
| 30 | <script type="text/javascript"> |
| 31 | dojo.require("dijit.dijit"); |
| 32 | dojo.require("dojox.grid.DataGrid"); |
| 33 | dojo.require("dojo.data.ItemFileWriteStore"); |
| 34 | dojo.require("dojo.parser"); |
| 35 | </script> |
| 36 | <script type="text/javascript" src="support/test_data.js"></script> |
| 37 | <script type="text/javascript"> |
| 38 | var layout = [{ |
| 39 | cells: [ |
| 40 | {name: 'Column 1', field: 'col1'}, |
| 41 | {name: 'Column 2', field: 'col2'}, |
| 42 | {name: 'Column 3', field: 'col3'} |
| 43 | ], |
| 44 | noscroll: true, |
| 45 | width: 'auto' |
| 46 | },{ |
| 47 | cells: [ |
| 48 | {name: 'Column 4', field: 'col4', width: "150px"}, |
| 49 | {name: 'Column 5', field: 'col5'} |
| 50 | ] |
| 51 | }]; |
| 52 | </script> |
| 53 | </head> |
| 54 | <body class="tundra"> |
| 55 | <div class="heading">dojox.grid.Grid Column Reordering Test</div> |
| 56 | |
| 57 | <div data-dojo-id="grid" id="grid" dojoType="dojox.grid.DataGrid" |
| 58 | columnReordering="true" store="test_store" query="{ id: '*' }" |
| 59 | structure="layout" rowSelector="20px"></div> |
| 60 | </body> |
| 61 | </html> |