Skip to content

Commit 449209c

Browse files
committed
fix(grid): changing faulty enum convers
1 parent d0e2f70 commit 449209c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

projects/igniteui-angular/src/lib/grids/columns/column.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
14221422
return this.grid.dataView
14231423
.map((rec, index) => {
14241424
if (!this.grid.isGroupByRecord(rec) && !this.grid.isSummaryRow(rec)) {
1425-
this.grid.pagingMode === GridPagingMode.Local && this.grid.page !== 0 ?
1425+
this.grid.pagingMode === GridPagingMode.Remote && this.grid.page !== 0 ?
14261426
index = index + this.grid.perPage * this.grid.page : index = this.grid.dataRowList.first.index + index;
14271427
const cell = new IgxGridCell(this.grid as any, index, this);
14281428
return cell;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4609,7 +4609,7 @@ export abstract class IgxGridBaseDirective implements GridType,
46094609
*/
46104610
protected _getDataViewIndex(index: number): number {
46114611
let newIndex = index;
4612-
if ((index < 0 || index >= this.dataView.length) && this.pagingMode === GridPagingMode.Local && this.page !== 0) {
4612+
if ((index < 0 || index >= this.dataView.length) && this.pagingMode === GridPagingMode.Remote && this.page !== 0) {
46134613
newIndex = index - this.perPage * this.page;
46144614
} else if (this.gridAPI.grid.verticalScrollContainer.isRemote) {
46154615
newIndex = index - this.gridAPI.grid.virtualizationState.startIndex;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
11261126
}
11271127
}
11281128

1129-
if (this.pagingMode === GridPagingMode.Local && this.page !== 0) {
1129+
if (this.pagingMode === GridPagingMode.Remote && this.page !== 0) {
11301130
row.index = index + this.perPage * this.page;
11311131
}
11321132
return row;
@@ -1160,7 +1160,7 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
11601160
*/
11611161
public allRows(): RowType[] {
11621162
return this.dataView.map((rec, index) => {
1163-
this.pagingMode === GridPagingMode.Local && this.page !== 0 ?
1163+
this.pagingMode === GridPagingMode.Remote && this.page !== 0 ?
11641164
index = index + this.perPage * this.page : index = this.dataRowList.first.index + index;
11651165
return this.createRow(index);
11661166
});
@@ -1202,7 +1202,7 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
12021202
const row = this.getRowByIndex(rowIndex);
12031203
const column = this._columns.find((col) => col.field === columnField);
12041204
if (row && row instanceof IgxGridRow && !row.data?.detailsData && column) {
1205-
if (this.pagingMode === GridPagingMode.Local && this.page !== 0) {
1205+
if (this.pagingMode === GridPagingMode.Remote && this.page !== 0) {
12061206
row.index = rowIndex + this.perPage * this.page;
12071207
}
12081208
return new IgxGridCell(this, row.index, column);

0 commit comments

Comments
 (0)