<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html dir="ltr">
<head>
<link rel="stylesheet" type="text/css" href="grid.css/grid.css">
<script type="text/javascript" src="../../dojoroot/dojo/dojo.js"
djConfig="parSEOnLoad: true">
</script>
<script type="text/javascript">
dojo.require("dojox.grid.DataGrid");
dojo.require("dojo.data.ItemFileReadStore");
dojo.require("dojox.data.CsvStore");
</script>
<!-- NOTE: the following script tag is not intended for usage in real
world!! it is part of the CodeGlass and you should just remove it when
you use the code -->
<script type="text/javascript">
dojo.addOnLoad(function() {
if (window.pub) {
window.pub();
}
});
</script>
</head>
<body class="tundra ">
基本的Grid-分成两个子行的网络
这点比较适合做类似订单的输出,订单信息和订购条目,1对多的输出,虽然不支持一个以上数据源,但对于表的映射是1 对 多,不需要去搞多个数据源
注意:必须指定数据储存器的标识符,,query 和queryOptions初始化注入的属性,默认的为name 这里指定查询Title rowSelector="30px"左侧宽
dojox.data.CsvStore数据源
dataStores/movies.csv使用 query="{ Title: '*' }"
基本的Grid
dojox.data.ItemFileReadStore数据源
</body>
</html>
ice.json
视图功能
锁定行,第一第二行不允许滚动:
grid_2_View.htm
css---grid.css/grid.css
@import "../../../dojoroot/dijit/themes/tundra/tundra.css"; @import "../../../dojoroot/dojox/grid/resources/Grid.css"; @import "../../../dojoroot/dojox/grid/resources/tundraGrid.css"; body,html { font-family:helvetica,arial,sans-serif; font-size:90%; } html,body{margin:0px;padding:0px;width:100%;height:100%;} .myGrid{width:98%;height:300px;margin: 0;} .myGrid th{ font-size:120%;}
原文链接:https://www.f2er.com/dojo/291818.html