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