diff --git a/projects/igniteui-angular/src/lib/grids/grid/grid.component.ts b/projects/igniteui-angular/src/lib/grids/grid/grid.component.ts index c3acf1c56a9..4ead09cc6ac 100644 --- a/projects/igniteui-angular/src/lib/grids/grid/grid.component.ts +++ b/projects/igniteui-angular/src/lib/grids/grid/grid.component.ts @@ -934,8 +934,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, this._groupRowTemplate = this.groupTemplate.template; } - this.detailTemplate.changes.subscribe(() => - this.trackChanges = (_, rec) => (rec?.detailsData !== undefined ? rec.detailsData : rec)); if (this.hideGroupedColumns && this._columns && this.groupingExpressions) { this._setGroupColsVisibility(this.hideGroupedColumns); @@ -979,6 +977,7 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, */ public ngOnInit() { super.ngOnInit(); + this.trackChanges = (_, rec) => (rec?.detailsData !== undefined ? rec.detailsData : rec); this.onGroupingDone.pipe(takeUntil(this.destroy$)).subscribe((args) => { this.crudService.endEdit(false); this.summaryService.updateSummaryCache(args);