igniteui-angular 22.0.7 → 22.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15773,10 +15773,22 @@ class IgxGridStateBaseDirective {
|
|
|
15773
15773
|
newColumns.push(ref);
|
|
15774
15774
|
}
|
|
15775
15775
|
});
|
|
15776
|
-
context.currGrid.
|
|
15777
|
-
|
|
15778
|
-
|
|
15779
|
-
|
|
15776
|
+
if (!context.currGrid._init && !context.currGrid._rendered) {
|
|
15777
|
+
// If grid is not rendered but is initialized (during ngAfterViewInit) wait for it to render.
|
|
15778
|
+
// Otherwise pushing mid detect change (mainly while calculating sizes from `calculateGridWidth` and `calculateGridSizes`) messes up headers detect changing.
|
|
15779
|
+
context.currGrid.rendered.pipe(first$1()).subscribe(() => {
|
|
15780
|
+
context.currGrid.updateColumns(newColumns);
|
|
15781
|
+
newColumns.forEach(col => {
|
|
15782
|
+
context.currGrid.columnInit.emit(col);
|
|
15783
|
+
});
|
|
15784
|
+
});
|
|
15785
|
+
}
|
|
15786
|
+
else {
|
|
15787
|
+
context.currGrid.updateColumns(newColumns);
|
|
15788
|
+
newColumns.forEach(col => {
|
|
15789
|
+
context.currGrid.columnInit.emit(col);
|
|
15790
|
+
});
|
|
15791
|
+
}
|
|
15780
15792
|
}
|
|
15781
15793
|
},
|
|
15782
15794
|
groupBy: {
|