Angular
Fundamentals of ag-Grid with Angular: Data

Updating Data

Goals

  • Using an RxJS Subject we can stream updates to data into ag-Grid with Angular.
  • Using the setRowData() method in the Grid API we can update all of the data that is displayed in the grid.
  • Using a RowDataTransaction object that is provided to the updateRowData() method in the Grid API we can instruct the grid to add, remove or update data in bulk.

Errata

  • The GridApi.updateRowData() method has been deprecated in favor of the GridApi.applyTransaction() method.
  • The RowDataTransaction object no longer has an addIndex optional property as mentioned.
 

I finished! On to the next chapter