source: Dev/trunk/src/client/dojox/grid/tests/test_grid_headerHeight.html

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 2.5 KB
Line 
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: 65em;
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                        {name: 'Column 1', field: 'col1'},
39                        {name: 'Column 2', field: 'col2', width: "10em"},
40                        {name: 'Column 3', field: 'col3', width:"100px"},
41                        {name: 'Column 4 is 25%', field: 'col4', width: "25%"},
42                        {name: 'Column 5 is 75% of the remaining space', field: 'col5', width: "75%"}
43                ];
44
45                var layout2 = [{
46                        noscroll: true,
47                        cells: [[
48                                { name: "Alpha", value: '<input type="checkbox"></input>', rowSpan: 2, width: 6, styles: 'text-align:center;' },
49                                { name: "Alpha 2", value: "Alpha2" }
50                        ],[
51                                { name: "Alpha 3", value: "Alpha3" }
52                        ]]
53                },{
54                        cells: [[
55                                { name: "Beta", value: 'simple'},
56                                { name: "Beta 2", value: "Beta 2" },
57                                { name: "Beta 3", value: "Beta 3" },
58                                { name: "Beta 4", value: "Beta 4", width: "auto" },
59                                { name: "Beta 5 is good", value: "Beta 5", width: "auto" }
60                        ],[
61                                { name: "Summary", colSpan: 5, value: 'Summary' }
62                        ]]
63                },{
64                        noscroll: true,
65                        cells: [
66                                { name: "Gamma", value: "Gamma" },
67                                { name: "Gamma2", value: "<button>Radiate</button>", styles: 'text-align:center;' }
68                        ]
69                }];
70        </script>
71</head>
72<body>
73        <div class="heading">dojox.grid.Grid Basic Test</div>
74        <div data-dojo-id="grid" id="grid" dojoType="dojox.grid.DataGrid"
75                store="test_store" structure="layout"></div>
76        <br /><br />
77        <div data-dojo-id="grid2" id="grid2" dojoType="dojox.grid._Grid"
78                structure="layout2" rowCount="50" rowSelector="20px"></div>
79</body>
80</html>
Note: See TracBrowser for help on using the repository browser.