<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Column Group - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="../demo.css">
<script type="text/javascript" src="../../jquery.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
<script type="text/javascript">
function ClickRow(rowIndex, rowData) {
alert(rowIndex+'这是Name:' + rowData.itemid + '这个是ID:' + rowData.ID);
//if (rowData.ModuleModel == 'DDS3366L') {
// alert();
// document.getElementById("Archives").src = "real-time/ArchivesForE_P.aspx?ModuleID=" + rowData.ID;
// }
//alert(123);
}
</script>
<h2>Column Group</h2>
<p>The header cells can be merged. Useful to group columns under a category.</p>
<div style="margin:20px 0;"></div>
<table class="easyui-datagrid" title="Column Group" style="width:700px;height:350px" pagination="true"
data-options="rownumbers:true,singleSelect:true,url:'datagrid_data3.json',method:'get',onClickRow:ClickRow">
<thead>
<tr>
<th data-options="field:'itemid', sortable:true,width:80" rowspan="2">督察机构</th>
<th data-options="field:'productid',width:100" rowspan="2">问题总数</th>
<th colspan="4">视频督察</th>
</tr>
<tr>
<th data-options="field:'listprice',width:80,align:'center'">类型1</th>
<th data-options="field:'unitcost',width:80,align:'center'">类型2</th>
<th data-options="field:'attr1',width:240">类型3</th>
<th data-options="field:'status',width:60,align:'center'">类型4</th>
</tr>
</thead>
</table>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title>Column Group - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="../demo.css">
<script type="text/javascript" src="../../jquery.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
<script type="text/javascript">
function ClickRow(rowIndex, rowData) {
alert(rowIndex+'这是Name:' + rowData.itemid + '这个是ID:' + rowData.ID);
//if (rowData.ModuleModel == 'DDS3366L') {
// alert();
// document.getElementById("Archives").src = "real-time/ArchivesForE_P.aspx?ModuleID=" + rowData.ID;
// }
//alert(123);
}
</script>
<h2>Column Group</h2>
<p>The header cells can be merged. Useful to group columns under a category.</p>
<div style="margin:20px 0;"></div>
<table class="easyui-datagrid" title="Column Group" style="width:700px;height:350px" pagination="true"
data-options="rownumbers:true,singleSelect:true,url:'datagrid_data3.json',method:'get',onClickRow:ClickRow">
<thead>
<tr>
<th data-options="field:'itemid', sortable:true,width:80" rowspan="2">督察机构</th>
<th data-options="field:'productid',width:100" rowspan="2">问题总数</th>
<th colspan="4">视频督察</th>
</tr>
<tr>
<th data-options="field:'listprice',width:80,align:'center'">类型1</th>
<th data-options="field:'unitcost',width:80,align:'center'">类型2</th>
<th data-options="field:'attr1',width:240">类型3</th>
<th data-options="field:'status',width:60,align:'center'">类型4</th>
</tr>
</thead>
</table>
</body>
</html>