onCellSelected(args: PivotCellSelectedEventArgs): void {
if (args.selectedCellsInfo.length > 0) {
let i : number = 0;
this.selectedCells = [];
for (let cell of args.selectedCellsInfo) {
this.selectedCells[i] = cell.currentCell.formattedText;
i++;
}
}
}
applyFormat(e: Event): void {
this.pivotObj.grid.queryCellInfo = this.queryCell.bind(this);
this.pivotObj.layoutRefresh();
}
queryCell(args: any): void {
(this.pivotObj.renderModule as any).rowCellBoundEvent(args);
for (var i = 0; i < this.selectedCells.length; i++) {
if (this.selectedCells[i] == args.cell.innerText)
args.cell.style.backgroundColor = "red";
}
}
|