Managing Rows in AG Grid

Summary

  • AdapTable provides a useful manageGridData function
  • This enables adding, updating and deleting AG Grid Rows in one transaction
  • This function can be run synchronously or asynchronously

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

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

Important

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

This function can be run either synchronously or asynchronously as required.

Find Out More

AdapTable also provides standalone functions if you wish only to add, update or delete Grid Rows, see:

The manageGridData function does 2 things:

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

  • publishes the Row Changed Event with the relevant Trigger (which will in turn trigger any Alerts)

manageGridData

rowConfig, updateConfig
Promise<RowNode[]>
Manages (ie. adds, updates or deletes) AG Grid Rows (asynchronously if required)
Managing Row Data
Fork
  • This demo shows how to manage rows in AG Grid at run-time using the manageGridData function in Grid API
  • Clicking the 'Manage Rows' will create a single transaction that simultaneously:
    • adds 2 Rows (Python and Go)
    • updates 2 Rows (React and Angular)
    • deletes 2 Rows (Vue and Svelte)