与DhtmlxGrid整合
效果如下:
源码 :
<!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>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。