只适合不分页的固定行列的表格
<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>