File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments