Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
RangeError: Maximum call stack size exceeded
posted

I have this function on my TS file that should update a value of a cell 

  public totalSum(t: IGridEditEventArgs) {
const column = this.grid.columnList.find(e => e.index === t.cellID.columnID);
if (column.header === 'Total') {
const rabat: number = Number(t.newValue) / Number(t.oldValue) * 100;
const mmRabat = this.grid.getCellByColumn(t.cellID.rowIndex, 'mmRabat');

mmRabat.update(1);
// this.grid.updateCell(10, t.cellID.rowIndex, 'mmRabat');
} else {
this.updateMMRabat(t);
}

But this is the Error I keep getting

MedieplanToolbarComponent.html:81 ERROR RangeError: Maximum call stack size exceeded
at Array.filter (<anonymous>)
at QueryList.filter (core.js:23826)
at IgxGridComponent.get [as rowList] (igniteui-angular.js:64592)
at IgxGridAPIService.GridBaseAPIService.get_row_by_index (igniteui-angular.js:2157)
at IgxGridAPIService.GridBaseAPIService.get_cell_by_index (igniteui-angular.js:2188)
at IgxGridComponent.IgxGridBaseComponent.getCellByColumn (igniteui-angular.js:66439)
at MedieplanToolbarComponent.updateMMRabat (medieplan-toolbar.component.ts:344)
at MedieplanToolbarComponent.totalSum (medieplan-toolbar.component.ts:338)
at Object.eval [as handleEvent] (MedieplanToolbarComponent.html:81)
at handleEvent (core.js:29238)

Parents Reply Children