WarUI

In-Place Mutation and Manual Refresh

GRID-A03-F10P1baselinePlanned

When application code mutates row objects in place, the grid cannot detect the change by reference. The refreshCells and redrawRows APIs let the app tell the grid what changed, and a force flag bypasses value comparison when needed.

Planned. This page shows the specification from issue #179. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

50 rows. A timer mutates the price of random rows in place every second.

Expected behavior

With refresh off, the displayed values go stale. With refresh on, changed cells update. With force off, only cells whose value differs are re-rendered. redrawRows recreates the row DOM entirely.

Planned API surface

api.refreshCellsapi.redrawRowsRefreshCellsParams.rowNodesRefreshCellsParams.columnsRefreshCellsParams.forceonCellRefreshed

Acceptance criteria

  • refreshCells with no params checks all visible cells (pending)
  • Scoped refresh touches only the specified rows and columns (pending)
  • With force=false, cells with unchanged values are not re-rendered (pending)
  • redrawRows rebuilds the row elements and keeps focus on the same cell (pending)
  • Refreshing off-screen rows is a no-op until they scroll into view (pending)