Deleting Rows from AG Grid
Summary
- AdapTable provides a
deleteGridDatafunction 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
applyTransactionfunction (orapplyTransactionAsyncif called asynchronously) -
publishes the Row Changed Event with a Trigger of
Delete, which in turn will trigger any Alerts
deleteGridData
dataRows: any[], config?: DataUpdateConfigPromise<RowNode[]>Deletes Rows from AG Grid (asynchronously if required)
Deleting Row Data
- This demo shows how to delete Rows from AG Grid at run-time using the
deleteGridDatafunction in Grid API