Skip to content

Commit 54f1b58

Browse files
mddragnevChronosSFrkaraivanov
authored
Recalculate grid sizes if group area is shown/hidden (#9301)
* fix(grid): Calculate grid sizes when we swap between grid having group area Co-authored-by: Stamen Stoychev <[email protected]> Co-authored-by: Radoslav Karaivanov <[email protected]>
1 parent abe68fc commit 54f1b58

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
@@ -775,12 +775,26 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
775775
return this.columnList.some((col) => col.groupable && !col.columnGroup);
776776
}
777777

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

786800
/**

0 commit comments

Comments
 (0)