Updated
This commit is contained in:
70
master/examples/test_selection.html
Normal file
70
master/examples/test_selection.html
Normal file
@@ -0,0 +1,70 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Test dojox.grid.Grid Selection Models</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
|
||||
<style type="text/css">
|
||||
@import "../resources/Grid.css";
|
||||
@import "../resources/tundraGrid.css";
|
||||
@import "../../../dojo/resources/dojo.css";
|
||||
@import "../../../dijit/themes/tundra/tundra.css";
|
||||
body {
|
||||
font-size: 0.9em;
|
||||
font-family: Geneva, Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.heading {
|
||||
font-weight: bold;
|
||||
padding-bottom: 0.25em;
|
||||
}
|
||||
|
||||
#grid1,#grid2,#grid3,#grid4 {
|
||||
border: 1px solid #333;
|
||||
width: 35em;
|
||||
height: 30em;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="../../../dojo/dojo.js"
|
||||
djConfig="isDebug:true, parseOnLoad: true"></script>
|
||||
<script type="text/javascript">
|
||||
dojo.require("dijit.dijit");
|
||||
dojo.require("dojox.grid.DataGrid");
|
||||
dojo.require("dojo.data.ItemFileWriteStore");
|
||||
dojo.require("dojo.parser");
|
||||
|
||||
var layout = [[
|
||||
new dojox.grid.cells.RowIndex({ width: 5 }),
|
||||
{name: 'Column 1', field: 'col1'},
|
||||
{name: 'Column 2', field: 'col2'},
|
||||
{name: 'Column 3', field: 'col3'},
|
||||
{name: 'Column 4', field: 'col4', width: "150px"},
|
||||
{name: 'Column 5', field: 'col5'}
|
||||
],[
|
||||
{name: 'Column 6', field: 'col6', colSpan: 2},
|
||||
{name: 'Column 7', field: 'col7'},
|
||||
{name: 'Column 8'},
|
||||
{name: 'Column 9', field: 'col3', colSpan: 2}
|
||||
]];
|
||||
</script>
|
||||
<script type="text/javascript" src="support/test_data.js"></script>
|
||||
</head>
|
||||
<body class="tundra">
|
||||
<h2>dojox.grid.Grid Selection Models Test</h2>
|
||||
<h3>none</h3>
|
||||
<div jsid="grid1" id="grid1" dojoType="dojox.grid.DataGrid" selectionMode="none"
|
||||
store="test_store" query="{ id: '*' }" structure="layout">
|
||||
</div>
|
||||
<h3>Single</h3>
|
||||
<div jsid="grid2" id="grid2" dojoType="dojox.grid.DataGrid" selectionMode="single"
|
||||
store="test_store" query="{ id: '*' }" structure="layout">
|
||||
</div>
|
||||
<h3>Multiple</h3>
|
||||
<div jsid="grid3" id="grid3" dojoType="dojox.grid.DataGrid" selectionMode="multiple"
|
||||
store="test_store" query="{ id: '*' }" structure="layout">
|
||||
</div>
|
||||
<h3>Extended</h3>
|
||||
<div jsid="grid4" id="grid4" dojoType="dojox.grid.DataGrid" selectionMode="extended"
|
||||
store="test_store" query="{ id: '*' }" structure="layout">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user