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
  • 29417
    Offline posted

    Hello Thomas, 

    Thank you for posting in our forum. 

    Could you share some additional information like:

    • When is this function called? Is it called on a particular Grid event?
    • If possible could you share the grid definition and the logic that triggers the related function (totalSum)?
    • Which version of the igniteui angular package are you currently using? 

    If you happen to have a sample that reproduces the issue please feel free to share it so that we can look into it.

     I’m looking forward to your reply. 

    Regards,

    Maya Kirova

Reply Children