Merge Cells for DataGrid 合并单元格

时间:2022-05-23 12:49:02

只适合不分页的固定行列的表格

<script type="text/javascript">
function onLoadSuccess(data){
var merges = [{
index: ,
rowspan:
},{
index: ,
rowspan:
},{
index: ,
rowspan:
}];
for(var i=; i<merges.length; i++){
$(this).datagrid('mergeCells',{
index: merges[i].index,
field: 'productid',
rowspan: merges[i].rowspan
});
}
}
</script>