| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>Test dojox.grid.DataGrid Dijit Editing</title> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> |
| 6 | <style type="text/css"> |
| 7 | @import "../resources/Grid.css"; |
| 8 | @import "../resources/tundraGrid.css"; |
| 9 | @import "../../../dojo/resources/dojo.css"; |
| 10 | @import "../../../dijit/themes/tundra/tundra.css"; |
| 11 | @import "../../../dijit/themes/tundra/tundra_rtl.css"; |
| 12 | @import "../../../dijit/tests/css/dijitTests.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 | #grid, #grid2 { |
| 22 | width: 65em; |
| 23 | height: 25em; |
| 24 | padding: 1px; |
| 25 | } |
| 26 | </style> |
| 27 | <script type="text/javascript" src="../../../dojo/dojo.js" |
| 28 | data-dojo-config="isDebug:true, parseOnLoad: true"></script> |
| 29 | <script type="text/javascript"> |
| 30 | dojo.require("dijit.dijit"); |
| 31 | dojo.require("dojox.grid.DataGrid"); |
| 32 | dojo.require("dojox.grid.cells.dijit"); |
| 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 | </head> |
| 38 | <body class="tundra"> |
| 39 | <div class="heading">dojox.grid.DataGrid Dijit Editing Test</div> |
| 40 | <span dojoType="dojo.data.ItemFileWriteStore" |
| 41 | data-dojo-id="jsonStore" url="../../../dijit/tests/_data/countries.json"> |
| 42 | </span> |
| 43 | <table dojoType="dojox.grid.DataGrid" |
| 44 | data-dojo-id="grid" id="grid" |
| 45 | store="jsonStore" query="{ name: '*' }" rowsPerPage="20" rowSelector="20px"> |
| 46 | <thead> |
| 47 | <tr> |
| 48 | <th field="name" width="300px">Country/Continent Name</th> |
| 49 | <th field="type" width="auto" cellType="dojox.grid.cells.ComboBox" options="country,city,continent" editable="true">Type</th> |
| 50 | </tr> |
| 51 | </thead> |
| 52 | </table> |
| 53 | </body> |
| 54 | </html> |