Deleting Rows from AG Grid

Summary

  • AdapTable provides a deleteGridData function to delete rows in AG Grid
  • This can be run synchronously or asynchronously

AdapTable facilitates deleting rows from AG Grid, while the application is live.

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

Important

  • We strongly recommend using this function to add rows to 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 as required.

The deleteGridData function does 2 things:

  • invokes AG Grid applyTransaction function (or applyTransactionAsync if called asynchronously)

  • publishes the Row Changed Event with a Trigger of Delete, which in turn will trigger any Alerts

deleteGridData

dataRows: any[], config?: DataUpdateConfig
Promise<RowNode[]>
Deletes Rows from AG Grid (asynchronously if required)
Deleting Row Data
Fork
  • This demo shows how to delete Rows from AG Grid at run-time using the deleteGridData function in Grid API