We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd9e662 + 718ad7f commit b910d00Copy full SHA for b910d00
src/app/tree-grid-load-on-demand/tree-grid-load-on-demand.sample.ts
@@ -85,6 +85,12 @@ export class TreeGridLoadOnDemandSampleComponent implements OnInit {
85
86
public addChildRow() {
87
const selectedRowId = this.grid1.selectedRows()[0];
88
+ const parent = this.grid1.records.get(selectedRowId).data;
89
+
90
+ if (!parent[this.grid1.hasChildrenKey]) {
91
+ parent[this.grid1.hasChildrenKey] = true;
92
+ }
93
94
this.grid1.addRow(
95
{
96
'employeeID': this.data1.length + this.nextRow++,
0 commit comments