You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.2 KiB
79 lines
2.2 KiB
<!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 "../../../dojo/resources/dojo.css"; |
|
@import "../../../dijit/themes/tundra/tundra.css"; |
|
@import "../resources/Grid.css"; |
|
@import "../../../dijit/tests/css/dijitTests.css"; |
|
table { border: none; } |
|
|
|
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: 400px; |
|
height: 500px !important; |
|
} |
|
</style> |
|
|
|
<script type="text/javascript" src="../../../dojo/dojo.js" |
|
data-dojo-config="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"); |
|
dojo.require("dijit.Dialog"); |
|
dojo.require("dijit.form.Button"); |
|
|
|
|
|
|
|
var layout = [[ |
|
{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'}, |
|
{name: 'Column 7', field: 'col7'}, |
|
{name: 'Column 8'}, |
|
{name: 'Column 9', field: 'col3', colSpan: 2} |
|
]]; |
|
|
|
function openDialog() { |
|
var dialog = dijit.byId('dialog'); |
|
dialog.show(); |
|
} |
|
</script> |
|
<script type="text/javascript" src="support/test_data.js"></script> |
|
</head> |
|
<body class="tundra"> |
|
<div class="heading">dojox.grid.Grid Basic Test</div> |
|
<button onclick="openDialog()">open</button> |
|
<div id="dialog" dojoType="dijit.Dialog" title="First Dialog"> |
|
<table> |
|
<tr><td> |
|
<div id="grid" dojoType="dojox.grid.DataGrid" |
|
store="test_store" structure="layout"></div> |
|
</td></tr> |
|
<tr><td> |
|
<button dojoType="dijit.form.Button" type="submit">close</button> |
|
</td></tr> |
|
</table> |
|
</div> |
|
</body> |
|
</html>
|
|
|