/// 部分代码
initTreeGrid = () => {
this.FlexGrids = new wijmo.grid.FlexGrid(findDOMNode(this.treeGridNode), {
allowMerging: 'RowHeaders',
autoGenerateColumns: false,
columns: this.state.columns,
itemsSource: this.state.data,
// headersVisibility: 'Column'
});
let p2 = this.FlexGrids.rowHeaders;
for (let r = 0; r < p2.rows.length; r++) {
for (let c = 0; c < p2.columns.length; c++) {
p2.setCellData(r, c, '部门名称');
}
}
let p3 = this.FlexGrids.topLeftCells;
for (let r = 0; r < p3.rows.length; r++) {
for (let c = 0; c < p3.columns.length; c++) {
p3.setCellData(r, c, '');
}
}
}
|