- 注册时间
- 2014-5-15
- 最后登录
- 2021-5-27
- 阅读权限
- 10
- 积分
- 872
- 精华
- 0
- 帖子
- 209
|
在demo中http://www.miniui.com/demo/datagrid/mergecolumns.html
指标下有公司和油品
如果通过设置动态列的方式 实现不了这种效果吧
grid.set({
columns: [
{ type:"checkcolumn"},
{ field:"rowid" ,name:"rowid", width:"50", align:"center" ,headeralign:"center", header: "序号"},
{field:"", align:"center", headeralign:"center", width:"160", header: "指标", column:[
{ field:"Company", name:"company", width:"60", headeralign:"center", allowsort:"true" ,align:"center",header: "公司"},
{ field:"oiltypes", width:"60", headeralign:"center", allowsort:"true", align:"center",header: "油品"}
]},
{ field:"danwei", align:"center", headeralign:"center",header: "单位"},
{ field:"LastyearSum" ,headeralign:"center" ,align:"center",header: "上年年度总量"},
{ field:"This", headeralign:"center" ,align:"center",header: "当月"}
]
});
|
|