You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,18 @@ All notable changes for each version of this project will be documented in this
6
6
7
7
### New Features
8
8
-`igxGrid`, `igxHierarchicalGrid`, `igxTreeGrid`
9
+
- Added two public methods that spawn the add row UI for an arbitrary record in the current data view. One that accepts a rowID to use as the row the UI spawns under and the other accepting an index that has a distinct implementation for `IgxTreeGrid`. Please, refer to the official documentation for more information:[Grid Row Adding](https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/row-adding) and [Tree Grid Row Adding](https://www.infragistics.com/products/ignite-ui-angular/angular/components/treegrid/row-adding).
10
+
11
+
_Note:_ That the new record is still added at the end of the data view, after the end-user submits it.
12
+
```typescript
13
+
this.grid.beginAddRowById('ALFKI'); // spawns the add row UI under the row with PK 'ALFKI'
14
+
this.grid.beginAddRowById(null); // spawns the add row UI as the first record
15
+
this.grid.beginAddRowByIndex(10); // spawns the add row UI at index 10
16
+
this.grid.beginAddRowByIndex(0); // spawns the add row UI as the first record
17
+
this.treeGrid.beginAddRowById('ALFKI', true); // spawns the add row UI to add a child for the row with PK 'ALFKI'
18
+
this.treeGrid.beginAddRowByIndex(10, true); // spawns the add row UI to add a child for the row at index 10
19
+
this.treeGrid.beginAddRowByIndex(null); // spawns the add row UI as the first record
20
+
```
9
21
- Added capability to restore the state of multi column headers with `IgxGridStateDirective`.
10
22
11
23
## 12.1.3
@@ -69,7 +81,7 @@ All notable changes for each version of this project will be documented in this
69
81
- `IgxGridCellComponent`, `IgxTreeGridCellComponent`, `IgxHierarchicalGridCellComponent` are no longer exposed in the public API. Instead, a new class `IgxGridCell` replaces all of these. It is a facade class which exposes only the public API of the above mentioned. Automatic migration will change these imports with `CellType`, which is the interface implemented by `IgxGridCell`
70
82
- **Behavioral changes**
71
83
- `getCellByKey`, `getCellByColumn`, `getCellByColumnVisibleIndex`, `row.cells`, `column.cells`, `grid.selectedCells` now return an `IgxGridCell` the `CellType` interface.
72
-
- `cell` in `IGridCellEventArgs` is now `CellType`. `IGridCellEventArgs` are emitetd in `cellClick`, `selected`, `contextMenu` and `doubleClick` events.
84
+
- `cell` in `IGridCellEventArgs` is now `CellType`. `IGridCellEventArgs` are emitted in `cellClick`, `selected`, `contextMenu` and `doubleClick` events.
73
85
- `let-cell` property in cell template is now `CellType`.
74
86
- `getCellByColumnVisibleIndex` is now deprecated and will be removed in next major version. Use `getCellByKey`, `getCellByColumn` instead.
0 commit comments