Updated
This commit is contained in:
80
master/examples/test_grid_headerHeight.html
Normal file
80
master/examples/test_grid_headerHeight.html
Normal file
@@ -0,0 +1,80 @@
|
||||
<!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 Basic</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;
|
||||
}
|
||||
|
||||
#grid {
|
||||
border: 1px solid #333;
|
||||
width: 65em;
|
||||
height: 30em;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="../../../dojo/dojo.js"
|
||||
djConfig="isDebug:false, 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");
|
||||
</script>
|
||||
<script type="text/javascript" src="support/test_data.js"></script>
|
||||
<script type="text/javascript">
|
||||
var layout = [
|
||||
{name: 'Column 1', field: 'col1'},
|
||||
{name: 'Column 2', field: 'col2', width: "10em"},
|
||||
{name: 'Column 3', field: 'col3', width:"100px"},
|
||||
{name: 'Column 4 is 25%', field: 'col4', width: "25%"},
|
||||
{name: 'Column 5 is 75% of the remaining space', field: 'col5', width: "75%"}
|
||||
];
|
||||
|
||||
var layout2 = [{
|
||||
noscroll: true,
|
||||
cells: [[
|
||||
{ name: "Alpha", value: '<input type="checkbox"></input>', rowSpan: 2, width: 6, styles: 'text-align:center;' },
|
||||
{ name: "Alpha 2", value: "Alpha2" }
|
||||
],[
|
||||
{ name: "Alpha 3", value: "Alpha3" }
|
||||
]]
|
||||
},{
|
||||
cells: [[
|
||||
{ name: "Beta", value: 'simple'},
|
||||
{ name: "Beta 2", value: "Beta 2" },
|
||||
{ name: "Beta 3", value: "Beta 3" },
|
||||
{ name: "Beta 4", value: "Beta 4", width: "auto" },
|
||||
{ name: "Beta 5 is good", value: "Beta 5", width: "auto" }
|
||||
],[
|
||||
{ name: "Summary", colSpan: 5, value: 'Summary' }
|
||||
]]
|
||||
},{
|
||||
noscroll: true,
|
||||
cells: [
|
||||
{ name: "Gamma", value: "Gamma" },
|
||||
{ name: "Gamma2", value: "<button>Radiate</button>", styles: 'text-align:center;' }
|
||||
]
|
||||
}];
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="heading">dojox.grid.Grid Basic Test</div>
|
||||
<div jsid="grid" id="grid" dojoType="dojox.grid.DataGrid"
|
||||
store="test_store" structure="layout"></div>
|
||||
<br /><br />
|
||||
<div jsid="grid2" id="grid2" dojoType="dojox.grid._Grid"
|
||||
structure="layout2" rowCount="50" rowSelector="20px"></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user