Skip to content

Commit a2c27b9

Browse files
committed
fix(grid): re-init nav service after columns change in WC with layouts
1 parent 1a054fc commit a2c27b9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid.component.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,17 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
13041304
super.onColumnsAddedOrRemoved();
13051305
}
13061306

1307+
/**
1308+
* @hidden
1309+
*/
1310+
protected override onColumnsChanged(change: QueryList<IgxColumnComponent>) {
1311+
super.onColumnsChanged(change);
1312+
1313+
if (this.hasColumnLayouts && !(this.navigation instanceof IgxGridMRLNavigationService)) {
1314+
this._setupNavigationService();
1315+
}
1316+
}
1317+
13071318
/**
13081319
* @hidden @internal
13091320
*/

0 commit comments

Comments
 (0)