WarUI

Batch Edit Mode

GRID-A14-F24P1baselinePlanned

Collects adds, updates and deletes locally and sends them in one Save All action, with a summary and a Discard option. This reduces server calls and lets users review their work before submitting it.

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

Live example

A prices grid with a batch toolbar showing change counts and Save and Discard buttons.

Expected behavior

Changes build up with dirty markers. Save All sends one payload grouped into added, updated and deleted. On a partial failure, the rows that failed stay dirty with error messages, and the rows that succeeded are accepted.

Planned API surface

editMode: 'batch'saveAll(handler)discardAll()getBatch()onBeforeBatchSaveonBatchSavedonBatchErrorbatchToolbar

Acceptance criteria

  • The getBatch payload has the shape { added, updated, deleted } with row IDs and changed fields. (pending)
  • Partial success accepts only the rows that succeeded. (pending)
  • discardAll restores the state from before the batch. (pending)
  • With the guard enabled, a beforeunload warning appears when there are unsaved changes. (pending)