Skip to content

Commit 40156a4

Browse files
committed
fix(grid): re-init nav service after columns change in WC with layouts
1 parent 9d2a946 commit 40156a4

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
@@ -1303,6 +1303,17 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
13031303
super.onColumnsAddedOrRemoved();
13041304
}
13051305

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

0 commit comments

Comments
 (0)