-
+
diff --git a/src/app/grid/grid.sample.ts b/src/app/grid/grid.sample.ts
index 80f62cab4fd..8b606522f93 100644
--- a/src/app/grid/grid.sample.ts
+++ b/src/app/grid/grid.sample.ts
@@ -168,15 +168,15 @@ export class GridSampleComponent implements OnInit, AfterViewInit {
}
public updateRecord(event) {
- this.grid1.updateCell(this.selectedCell.rowIndex, this.selectedCell.columnField, event);
+ const row = this.selectedCell.cell.row;
+ this.grid1.updateCell(event, row.key, this.selectedCell.cell.column.field);
}
public deleteRow() {
if (this.selectedCell.cell) {
- const rowIndex = this.selectedCell.cell.row.index;
- const row = this.grid1.getRowByIndex(rowIndex);
+ const row = this.selectedCell.cell.row;
row.delete();
- this.snax.open(`Row with ID ${rowIndex} was deleted`);
+ this.snax.open(`Row with ID ${row.index} was deleted`);
this.selectedCell = {};
}
}
diff --git a/src/app/hierarchical-grid-remote-virtualization/hierarchical-grid-remote-virtualization.html b/src/app/hierarchical-grid-remote-virtualization/hierarchical-grid-remote-virtualization.html
index d59f6e3d93f..15d9aeda183 100644
--- a/src/app/hierarchical-grid-remote-virtualization/hierarchical-grid-remote-virtualization.html
+++ b/src/app/hierarchical-grid-remote-virtualization/hierarchical-grid-remote-virtualization.html
@@ -2,7 +2,7 @@
-
+
{{ val }}
diff --git a/src/app/shared/financialData.ts b/src/app/shared/financialData.ts
index c6e39ad2032..a17a11a03c3 100644
--- a/src/app/shared/financialData.ts
+++ b/src/app/shared/financialData.ts
@@ -896,7 +896,8 @@ export class FinancialData {
/** Updates values in random records */
public static updateRandomPrices(data: any[]): any[] {
const newData = data.slice();
- for (let i = Math.round(Math.random() * 10); i < newData.length; i += Math.round(Math.random() * 10)) {
+ // fixing a strange bug where newData has more elements than data, but all of those "explicit" items are undefined
+ for (let i = Math.round(Math.random() * 10); i < data.length; i += Math.round(Math.random() * 10)) {
newData.push(this.randomizeObjectData(newData[i]));
}
return newData;
diff --git a/src/app/tooltip/tooltip.sample.html b/src/app/tooltip/tooltip.sample.html
index c6ec2298f42..aece2842623 100644
--- a/src/app/tooltip/tooltip.sample.html
+++ b/src/app/tooltip/tooltip.sample.html
@@ -79,12 +79,12 @@