Answers for "ag-grid add row"

0

ag-grid add row

const selectedRow = this.gridApi.getFocusedCell()
const id = this.gridOptions.rowData[selectedRow.rowIndex].i

this.gridOptions.rowData.splice(selectedRow.rowIndex, 1)
this.gridApi.setRowData(this.gridOptions.rowData)
Posted by: Guest on January-17-2022
0

ag-grid add row

const row = //someNewRowDataHere

this.gridOptions.rowData.push(row)
this.gridApi.setRowData(this.gridOptions.rowData)
Posted by: Guest on January-17-2022

Browse Popular Code Answers by Language