Skip to content

Commit 5cf1d7b

Browse files
authored
Merge pull request #14331 from IgniteUI/mkirova/fix-default-row-height
fix(igxGrid): Add fix for scenario where data is loaded post-init and…
2 parents a9fa356 + 150c84d commit 5cf1d7b

File tree

12 files changed

+1993
-7
lines changed

12 files changed

+1993
-7
lines changed

package-lock.json

Lines changed: 185 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
"zone.js": "~0.14.4"
8080
},
8181
"devDependencies": {
82+
"igniteui-dockmanager": "^1.14.2",
83+
"@microsoft/signalr": "^7.0.12",
8284
"@angular-devkit/build-angular": "^18.0.2",
8385
"@angular-devkit/schematics": "^18.0.2",
8486
"@angular-eslint/builder": "^18.0.1",

projects/igniteui-angular/src/lib/directives/for-of/for_of.directive.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,11 @@ export class IgxForOfDirective<T, U extends T[] = T[]> extends IgxForOfToken<T,U
568568
this._applyChanges();
569569
this.cdr.markForCheck();
570570
this._updateScrollOffset();
571-
this.dataChanged.emit();
571+
const args: IForOfDataChangingEventArgs = {
572+
containerSize: this.igxForContainerSize,
573+
state: this.state
574+
};
575+
this.dataChanged.emit(args);
572576
});
573577
}
574578
}
@@ -1489,6 +1493,7 @@ export interface IForOfState extends IBaseEventArgs {
14891493

14901494
export interface IForOfDataChangingEventArgs extends IBaseEventArgs {
14911495
containerSize: number;
1496+
state: IForOfState;
14921497
}
14931498

14941499
export class IgxGridForOfContext<T, U extends T[] = T[]> extends IgxForOfContext<T, U> {
@@ -1639,7 +1644,8 @@ export class IgxGridForOfDirective<T, U extends T[] = T[]> extends IgxForOfDirec
16391644
const changes = this._differ.diff(this.igxForOf);
16401645
if (changes) {
16411646
const args: IForOfDataChangingEventArgs = {
1642-
containerSize: this.igxForContainerSize
1647+
containerSize: this.igxForContainerSize,
1648+
state: this.state
16431649
};
16441650
this.dataChanging.emit(args);
16451651
// re-init cache.
@@ -1661,7 +1667,7 @@ export class IgxGridForOfDirective<T, U extends T[] = T[]> extends IgxForOfDirec
16611667
this._adjustScrollPositionAfterSizeChange(sizeDiff);
16621668
}
16631669
this._updateScrollOffset();
1664-
this.dataChanged.emit();
1670+
this.dataChanged.emit(args);
16651671
}
16661672
}
16671673
}

0 commit comments

Comments
 (0)