Bulk Update Selected Rows
Select two orders. In the action bar below the grid, open Set status and choose Ready. Both selected rows update immediately. Click Undo above the grid to restore both previous statuses, or Redo to apply the update again.
Connect selection and batch editing
Section titled “Connect selection and batch editing”Install RowSelectPlugin with a checkbox column and BatchEditingPlugin. Use the rowselected event to update the action bar and call the following handler when a status is chosen.
import { BatchEditingPlugin, RowSelectPlugin } from '@revolist/revogrid-pro';
grid.plugins = [RowSelectPlugin, BatchEditingPlugin];grid.columns = [ { prop: 'selected', rowSelect: true }, { prop: 'status', name: 'Status' },];
await grid.componentOnReady();const batch = (await grid.getPlugins()).find( (plugin) => plugin instanceof BatchEditingPlugin,);
async function applyStatus(status: string) { if (!batch?.begin()) return false; if (batch.stageSelectedRows([{ prop: 'status', value: status }]) && await batch.commit()) { return true; } batch.cancel(); return false;}Use getSelectedRows() and stageSelectedRows(assignments) on the batch instance to build your own controls. Programmatic staging requires an open batch. Assignments apply to checkbox-selected data rows in the current view, including records outside the viewport. Filtered or collapsed rows are skipped. When the grid uses remote pagination, the update is scoped to the loaded page.
The batch rejects the complete staging request if any selected target is read-only or unavailable. Validation runs when the batch commits. Accepted local updates create one undo entry.