Skip to content

Commit ce9a13f

Browse files
Recalculate grid sizes if group area is shown/hidden (#9302)
* fix(grid): Calculate grid sizes when we swap between grid having group area Co-authored-by: Radoslav Karaivanov <[email protected]>
1 parent 838e0ef commit ce9a13f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,12 +774,26 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
774774
return this.columnList.some((col) => col.groupable && !col.columnGroup);
775775
}
776776

777+
/**
778+
* Returns whether the `IgxGridComponent` has group area.
779+
*
780+
* @example
781+
* ```typescript
782+
* let isGroupAreaVisible = this.grid.showGroupArea;
783+
* ```
784+
*
785+
* @example
786+
* ```html
787+
* <igx-grid #grid [data]="Data" [showGroupArea]="false"></igx-grid>
788+
* ```
789+
*/
777790
@Input()
778791
public get showGroupArea(): boolean {
779792
return this._showGroupArea;
780793
}
781794
public set showGroupArea(value: boolean) {
782795
this._showGroupArea = value;
796+
this.notifyChanges(true);
783797
}
784798

785799
/**

0 commit comments

Comments
 (0)