Skip to content

Commit

Permalink
Merge pull request #2762 from IgniteUI/dTsvetkov/fix-analysis-samples…
Browse files Browse the repository at this point in the history
…-vnext

Fix context menu button -vnext
  • Loading branch information
zdrawku committed Jul 29, 2021
2 parents 76dcfc5 + 533cb89 commit 046d1f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ export class DataAnalysisDockManagerComponent implements OnInit, AfterViewInit,
if ((!this.grid.getRowByIndex(this.rowIndex) || (this.grid.rowList.toArray().indexOf(this.grid.getRowByIndex(this.rowIndex)) >= this.grid.rowList.length - 2) && this.rowIndex + 2 < this.grid.dataLength)) {
const lastFullyVisibleRowIndex = this.grid.rowList.toArray()[this.grid.rowList.length - 3].index;
const field = this.grid.visibleColumns[this.colIndex].field;
cell = this.grid.getCellByColumn(lastFullyVisibleRowIndex, field);
cell = this.grid.gridAPI.get_cell_by_index(lastFullyVisibleRowIndex, field);
} else {
cell = this.grid.getCellByColumn(this.rowIndex, this.grid.visibleColumns[this.colIndex].field);
cell = this.grid.gridAPI.get_cell_by_index(this.rowIndex, this.grid.visibleColumns[this.colIndex].field);
}

if (!cell) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ export class GridDynamicChartDataComponent implements OnInit, AfterViewInit, OnD
if ((!this.grid.getRowByIndex(this.rowIndex) || (this.grid.rowList.toArray().indexOf(this.grid.getRowByIndex(this.rowIndex)) >= this.grid.rowList.length - 2) && this.rowIndex + 2 < this.grid.dataLength)) {
const lastFullyVisibleRowIndex = this.grid.rowList.toArray()[this.grid.rowList.length - 3].index;
const field = this.grid.visibleColumns[this.colIndex].field;
cell = this.grid.getCellByColumn(lastFullyVisibleRowIndex, field);
cell = this.grid.gridAPI.get_cell_by_index(lastFullyVisibleRowIndex, field);
} else {
cell = this.grid.getCellByColumn(this.rowIndex, this.grid.visibleColumns[this.colIndex].field);
cell = this.grid.gridAPI.get_cell_by_index(this.rowIndex, this.grid.visibleColumns[this.colIndex].field);
}

if (!cell) {
Expand Down

0 comments on commit 046d1f6

Please sign in to comment.