- 注册时间
- 2013-5-3
- 最后登录
- 2024-11-20
- 阅读权限
- 150
- 积分
- 32966
- 精华
- 0
- 帖子
- 14366
|
- grid.on("drawcell", function (e) {
- if (e.column.type == "indexcolumn") {
-
- var groups = this.getGroupingView()
- var record = e.record;
- var index = 0;
-
- for (var i = 0, l = groups.length; i < l; i++) {
- var gp = groups[i];
- for (var j = 0, k = gp.rows.length; j < k; j++) {
- if (record == gp.rows[j]) {
- index = j;
- break;
- }
- }
- }
- e.cellHtml = index+1;
- }
- })
复制代码 |
|