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

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

Added Dojo 1.9.3 release.

File size: 1.9 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.DataGrid Programmatic Instantiation</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                        .heading {
12                                font-weight: bold;
13                                padding-bottom: 0.25em;
14                        }
15                                       
16                        #grid {
17                                border: 1px solid #333;
18                                width: 50em;
19                                height: 30em;
20                        }
21                </style>
22                <script type="text/javascript" src="../../../dojo/dojo.js"
23                        data-dojo-config="isDebug:false, debugAtAllCosts: false, parseOnLoad: true"></script>
24                <script type="text/javascript">
25                        dojo.require("dijit.dijit"); // optimize: load dijit layer
26                        dojo.require("dojox.grid.DataGrid");
27                        dojo.require("dojo.data.ItemFileWriteStore");
28                        dojo.require("dojo.parser");
29                </script>
30                <script type="text/javascript" src="support/test_data.js"></script>
31                <script type="text/javascript">
32                        var grid = null;
33                        dojo.addOnLoad(function(){
34                                var layout = [[
35                                        {name: 'Column 1', field: 'col1'},
36                                        {name: 'Column 2', field: 'col2'},
37                                        {name: 'Column 3', field: 'col3'},
38                                        {name: 'Column 4', field: 'col4', width: "150px"},
39                                        {name: 'Column 5', field: 'col5'}
40                                ],[
41                                        {name: 'Column 6', field: 'col6'},
42                                        {name: 'Column 7', field: 'col7'},
43                                        {name: 'Column 8'},
44                                        {name: 'Column 9', field: 'col3', colSpan: 2}
45                                ]];
46
47                                grid = new dojox.grid.DataGrid({
48                                        id: "grid",
49                                        store: test_store,
50                                        structure: layout
51                                }, document.createElement('div'));
52                                dojo.byId("gridContainer").appendChild(grid.domNode);
53                                grid.startup();
54                        });
55                </script>
56        </head>
57        <body class="tundra">
58                <div class="heading">dojox.grid.DataGrid Programmatic Instantiation Test</div>
59                <div id="gridContainer"></div>
60        </body>
61</html>
Note: See TracBrowser for help on using the repository browser.