Posted 2 June 2020, 11:34 pm EST
Hello,
I have an auto expand/collapse feature. Auto collapse/expand brings back the subtotal rows for some of the columns. I would like to call loadedRows event to hide the subtotals in some of the columns.
expandCollapse(e: MouseEvent) {
if (this.isCollapsed) {
this.pivotGrid._collapseColsToLevel(10000);
this.pivotGrid._collapseRowsToLevel(10000);
this.isCollapsed = !this.isCollapsed;
} else {
this.pivotGrid._collapseColsToLevel(1);
this.pivotGrid._collapseRowsToLevel(1);
this.isCollapsed = !this.isCollapsed;
//Below line doesn't work. How can i call the loadedRows
this.loadedRows(this.pivotGrid);
}
}
Thanks,
Sravya