Skip to content

Commit 8ace844

Browse files
committed
Merge branch '8.2.x' into dmdimitrov/issue5993-8.2.x
2 parents 998926f + 67c839b commit 8ace844

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,6 +1556,24 @@ export abstract class IgxGridBaseComponent extends DisplayDensityBase implements
15561556
@Output()
15571557
public onRowDeleted = new EventEmitter<IRowDataEventArgs>();
15581558

1559+
/**
1560+
* Returns the state of the grid virtualization, including the start index and how many records are rendered.
1561+
* ```typescript
1562+
* const gridVirtState = this.grid1.virtualizationState;
1563+
* ```
1564+
* @memberof IgxGridBaseComponent
1565+
*/
1566+
get virtualizationState() {
1567+
return this.verticalScrollContainer.state;
1568+
}
1569+
1570+
/**
1571+
* @hidden
1572+
*/
1573+
set virtualizationState(state) {
1574+
this.verticalScrollContainer.state = state;
1575+
}
1576+
15591577
/**
15601578
* Emitted when a new chunk of data is loaded from virtualization.
15611579
* ```typescript

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -172,24 +172,6 @@ export class IgxGridComponent extends IgxGridBaseComponent implements IGridDataB
172172
this._filteredData = value;
173173
}
174174

175-
/**
176-
* Returns the state of the grid virtualization, including the start index and how many records are rendered.
177-
* ```typescript
178-
* const gridVirtState = this.grid1.virtualizationState;
179-
* ```
180-
* @memberof IgxGridComponent
181-
*/
182-
get virtualizationState() {
183-
return this.verticalScrollContainer.state;
184-
}
185-
186-
/**
187-
* @hidden
188-
*/
189-
set virtualizationState(state) {
190-
this.verticalScrollContainer.state = state;
191-
}
192-
193175
/**
194176
* Sets the total number of records in the data source.
195177
* This property is required for remote grid virtualization to function when it is bound to remote data.

0 commit comments

Comments
 (0)