Updating Rows in AG Grid

Summary

  • AdapTable provides an updateGridData function to update rows in AG Grid
  • This can be run synchronously or asynchronously

AdapTable facilitates updating rows in AG Grid, while the application is live.

This is done via the updateGridData function in the Grid API section of Adaptable API.

Important

  • We strongly recommend using this function to update rows in AG Grid, rather than the AG Grid API directly
  • The function ultimately calls an AG Grid function but first performs important checks (e.g. for Primary Key)

This function can be run either synchronously or asynchronously, and should be used to update entire rows.

Hint

To update a single cell use setCellValue (or setCellValues for multiple cells) - see Updating Grid Cells for details

The updateGridData function does 2 things:

Caution

AdapTable will not apply any Validation Alerts when using the updateGridData function

updateGridData

dataRows: any[], config?: DataUpdateConfig
Promise<RowNode[]>
Updates Rows in AG Grid (asynchronously if required)
Updating Row Data
Fork
  • This demo shows how to update rows in AG Grid at run-time using the updateGridData function in Grid API

Add or Update

AdapTable provides a companion addOrUpdateGridData function.

This should be used when the rows received can be either new or existing.

Find Out More