码迷,mamicode.com
首页 > Web开发 > 详细

与DhtmlxGrid整合

时间:2015-03-19 16:04:43      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:

效果如下:

技术分享

源码 :

<!DOCTYPE html>
<html>
<head>
	<title>Integration with dhtmlxGrid</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	<style>
		div#layoutObj {
			position: relative;
			margin-top: 20px;
			margin-left: 20px;
			width: 600px;
			height: 400px;
		}
	</style>
	<script>
		var myLayout, myGrid;
		function doOnLoad() {
			myLayout = new dhtmlXLayoutObject({
				parent: "layoutObj",
				pattern: "3L",
				cells: [{id: "a", text: "dhtmlxGrid"}]
			});
			
			myGrid = myLayout.cells("a").attachGrid();
			myGrid.setImagePath("../../../codebase/imgs/")
			myGrid.loadXML("../common/grid.xml?etc="+new Date().getTime());
		}
	</script>
</head>
<body onload="doOnLoad();">
	<div id="layoutObj"></div>
</body>
</html>

 

与DhtmlxGrid整合

标签:

原文地址:http://www.cnblogs.com/streamice/p/DhtmlxLayout_DhtmlxGrid.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!