Data Grid
Overview
A spreadsheet-style table where staff edit values directly in the cells, add rows and delete rows. Every edit is saved to the record immediately.
An editable spreadsheet-style table. Edits are saved to the records.
When to use
- Updating prices and stock levels across a product list
- Fixing phone numbers and statuses on many customers at once
- A quick timesheet where staff type hours per day
- Admin screens for reference data (tax rates, service types)
When not to use
- Public or customer-facing pages: edits are immediate and hard to undo
- Records that need validation beyond the field type: use a Form, which validates before saving
- Fields with files, images, JSON or multi-select values; these are shown read-only
Quick start
- Add a Data Grid and choose the entity in Properties → Data
- Pick the Columns staff may edit; leave out anything sensitive
- Decide whether to Allow adding rows and Allow deleting rows
- Preview: click a cell, type, press Enter or Tab away to save
Properties
Heading shown above the grid. Leave empty for none. Bindable, so it can include dynamic text such as the customer's name.
Example: Open jobs
Fields shown as editable columns. Created, Updated, ID, files, images, JSON, multi-select and read-only fields are shown but cannot be edited.
Example: SKU · Name · Price · In stock
How many records are loaded and shown at a time. Smaller pages load faster on phones; larger pages reduce clicking. The server never returns more than this per request.
Default: 25
Shows an “Add row” button that opens an empty editable row; the record is created when its Save tick is clicked.
Default: true
Shows a trash icon per row with a confirmation. The server still checks the role may delete.
Default: true
There is no undo for deleted records.
Beta. Shows an Export CSV button above the table for signed-in app users. The file contains the list they are looking at (current filters, search and sort) with the configured columns (or every field when none are set), read on the server with their permissions: records they can't read and fields hidden from their role are never included. Text that a spreadsheet could run as a formula is neutralised. Up to 10,000 rows, 10 exports per 10 minutes per user; every export is audited.
Default: false
Anyone who can see the table can take its data with them. Turn it on only for roles that may keep a copy.
Data binding
Same as Table: an entity query with filters, sort and search. Each cell edit sends an Update Record for that one field; the grid then reloads the entity's data everywhere on the page. Exposes page, selectedId and selectedRecord.
Properties that can use dynamic data: data.
Events
- On row click
- Runs when a record is clicked or activated with Enter. Event → record holds the whole record and Event → id its id; actions can also read Current record. Typical: Navigate to a details page with id = Event → id, or Open Drawer with the record.
- On change
- Runs after a cell edit was saved. Event → id is the record, Event → field the field key and Event → value the new value. Use it for a toast, a Run Workflow, or to refresh a KPI.
Actions
Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.
Other components can read this component's page, selectedId, selectedRecord from the Data Picker → Component state.
Responsive behavior
Scrolls horizontally on narrow screens; editing in a grid on a phone is workable but fiddly, so prefer Forms for mobile edits.
Permissions
Edits go through the same permission checks as any update: the role must have update rights, read-only fields from the role's rule are rejected, and the saved record must stay within the role's record-level rule. Read-only data sources (external APIs) cannot be edited.
Accessibility
- Each cell editor is labelled with its column name
- Enter saves the cell; Escape is not supported, so click away to cancel
Examples
Product price maintenance
Source: Products · Sort: Name ascending
Columns: SKU, Name, Price, In stock, Active
Allow adding rows: on · Allow deleting rows: off
On Change: Show Toast “Saved {{event.field}}”Common patterns
- Filter the grid by Current user → id for a personal timesheet
- A KPI on the same page that recalculates after each edit
Limitations
- One cell saves at a time; there is no bulk paste
- No validation rules beyond the field type (numbers, dates, options)
- Select and relation cells use dropdowns; relations load up to 500 options
Troubleshooting
Why: The role lacks update permission or the field is read-only for that role
Fix: Adjust the permission rule for the entity and role
Why: System fields, files, images, JSON and multi-select are read-only in the grid
Fix: Edit those through a Form or Detail View