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

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

Added Dojo 1.9.3 release.

File size: 2.3 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 Selection Models</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                #grid1,#grid2,#grid3,#grid4 {
22                        border: 1px solid #333;
23                        width: 35em;
24                        height: 30em;
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("dojo.data.ItemFileWriteStore");
33                dojo.require("dojo.parser");
34
35                var layout = [[
36                        new dojox.grid.cells.RowIndex({ width: 5 }),
37                        {name: 'Column 1', field: 'col1'},
38                        {name: 'Column 2', field: 'col2'},
39                        {name: 'Column 3', field: 'col3'},
40                        {name: 'Column 4', field: 'col4', width: "150px"},
41                        {name: 'Column 5', field: 'col5'}
42                ],[
43                        {name: 'Column 6', field: 'col6', colSpan: 2},
44                        {name: 'Column 7', field: 'col7'},
45                        {name: 'Column 8'},
46                        {name: 'Column 9', field: 'col3', colSpan: 2}
47                ]];
48        </script>
49        <script type="text/javascript" src="support/test_data.js"></script>
50</head>
51<body class="tundra">
52        <h2>dojox.grid.Grid Selection Models Test</h2>
53        <h3>none</h3>
54        <div data-dojo-id="grid1" id="grid1" dojoType="dojox.grid.DataGrid" selectionMode="none"
55                store="test_store" query="{ id: '*' }" structure="layout">
56        </div>
57        <h3>Single</h3>
58        <div data-dojo-id="grid2" id="grid2" dojoType="dojox.grid.DataGrid" selectionMode="single"
59                store="test_store" query="{ id: '*' }" structure="layout">
60        </div>
61        <h3>Multiple</h3>
62        <div data-dojo-id="grid3" id="grid3" dojoType="dojox.grid.DataGrid" selectionMode="multiple"
63                store="test_store" query="{ id: '*' }" structure="layout">
64        </div>
65        <h3>Extended</h3>
66        <div data-dojo-id="grid4" id="grid4" dojoType="dojox.grid.DataGrid" selectionMode="extended"
67                store="test_store" query="{ id: '*' }" structure="layout">
68        </div>
69</body>
70</html>
Note: See TracBrowser for help on using the repository browser.