|
document.getElementById("rowInfo").onclick = () => {
let pivotValues: any = this.pivotObj.pivotValues;
console.log(pivotValues[pivotValues.length - 1]);
}; |
Hi Dileep,Based on your requirement we have prepared a sample to get row info (grand total of the column) of the pivot table. Please check the below sample and code snippet for your reference.Code Snippet:
document.getElementById("rowInfo").onclick = () => {let pivotValues: any = this.pivotObj.pivotValues;console.log(pivotValues[pivotValues.length - 1]);};We hope the above sample meets your requirements. Please let us know if you have concern.Regards,Saranya Sivan.
|
displayGrandTotal(rowIndex) {
let pivotValues: any = this.pivotObj.pivotValues;
console.log(pivotValues[pivotValues.length - 1][rowIndex].value);
} |