Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

How to add new row to a particular index of a ag grid using angular 7

addRow(){
  // Assuming newRow is an object, such as {"slNo": this.index,"id":3, "rank":1};
  rowData.splice(targetIndex, 0, newRow);
  this.gridApi.setRowData(rowData); // optional
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #add #row #index #ag #grid #angular
ADD COMMENT
Topic
Name
3+5 =