- setData(p, r, cells) {
- // first element in row header
- if (p.cellType == wjcGrid.CellType.Cell) {
- p.grid.rowHeaders.setCellData(r, 0, cells[0]);
- }
- // other elements in row
- for (var i = 1; i < cells.length; i++) {
- p.setCellData(r, i - 1, cells[i]);
- }
- }
复制代码 |