igniteui-angular 21.2.14 → 21.2.15
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.
|
@@ -15758,10 +15758,22 @@ class IgxGridStateBaseDirective {
|
|
|
15758
15758
|
newColumns.push(ref);
|
|
15759
15759
|
}
|
|
15760
15760
|
});
|
|
15761
|
-
context.currGrid.
|
|
15762
|
-
|
|
15763
|
-
|
|
15764
|
-
|
|
15761
|
+
if (!context.currGrid._init && !context.currGrid._rendered) {
|
|
15762
|
+
// If grid is not rendered but is initialized (during ngAfterViewInit) wait for it to render.
|
|
15763
|
+
// Otherwise pushing mid detect change (mainly while calculating sizes from `calculateGridWidth` and `calculateGridSizes`) messes up headers detect changing.
|
|
15764
|
+
context.currGrid.rendered.pipe(first$1()).subscribe(() => {
|
|
15765
|
+
context.currGrid.updateColumns(newColumns);
|
|
15766
|
+
newColumns.forEach(col => {
|
|
15767
|
+
context.currGrid.columnInit.emit(col);
|
|
15768
|
+
});
|
|
15769
|
+
});
|
|
15770
|
+
}
|
|
15771
|
+
else {
|
|
15772
|
+
context.currGrid.updateColumns(newColumns);
|
|
15773
|
+
newColumns.forEach(col => {
|
|
15774
|
+
context.currGrid.columnInit.emit(col);
|
|
15775
|
+
});
|
|
15776
|
+
}
|
|
15765
15777
|
}
|
|
15766
15778
|
},
|
|
15767
15779
|
groupBy: {
|