- 注册时间
- 2013-8-5
- 最后登录
- 2013-8-20
- 阅读权限
- 10
- 积分
- 164
- 精华
- 0
- 帖子
- 59
|
本帖最后由 ouyangzhiming 于 2013-8-6 17:12 编辑
grid.on("load", onLoad);
function onLoad(e) {
var grid2 = e.sender;
grid2.mergeColumns(["N_RECEIVABLE_SEQ","N_RECEIVABLE_SERIALNO","N_RECEIVABLE_TYPE","N_INVOICE_SEQ","V_RECEIVABLE_PHASE","N_RECEIVABLE_AMOUNT","V_RECEIVABLE_TERMS"]);
/*
var len = grid.getData().length;
var row = grid.getSelected();
var rowIndex = grid.indexOf(row);
for(var i=0;i<len;i++){
var marges = [
{rowIndex: i, columnIndex: 0,rowSpan: 2, colSpan: 0 }
];
grid.margeCells(marges);
}
var marges = [
{rowIndex: 0, columnIndex: 0,rowSpan: 4, colSpan: 0 },
{rowIndex: 0, columnIndex: 1,rowSpan: 4, colSpan: 0 },
{rowIndex: 0, columnIndex: 2,rowSpan: 4, colSpan: 0 },
{rowIndex: 0, columnIndex: 3,rowSpan: 4, colSpan: 0 },
{rowIndex: 0, columnIndex: 4,rowSpan: 4, colSpan: 0 }
];
grid.margeCells(marges);*/
}
用这个,也不知道如何动态设置合并
|
|