Set isreadOnly on a Column
AddisreadOnly: true to any column definition to disable editing for that column:
| Property | Type | Default | Description |
|---|---|---|---|
isreadOnly | boolean | False | Prevents user editing of this column |
isreadOnly is true, cells in the column cannot be modified regardless of user permissions or formatter rules.
Use a Read-Only Formatter
An alternative approach uses a formatter with the built-inreadOnly style to visually indicate and enforce read-only behavior:
isreadOnly: true with a formatter provides both functional protection (the cell cannot be edited) and a visual cue (the grey background indicates read-only status).
Read-Only Resolution
Powersheet determines read-only status by evaluating three conditions. A column becomes read-only if any of these are true:- Configuration flag:
isreadOnly: trueis set on the column in the sheet configuration - Historical revision: The user is viewing a historical revision of the document (all columns become read-only)
- User permission: The user has a
readOnlypermission on the document
Certain columns such as
outlineNumber are inherently managed by Polarion and should always be set to isreadOnly: true. Workflow properties and server-rendered calculated fields are also automatically read-only.Property-Level Permissions in the Domain Model
You can also control editability at the domain model level using thereadable and updatable properties on entity properties:
| Property | Default | Description |
|---|---|---|
readable | True | Controls whether the property is visible to users |
updatable | True | Controls whether the property can be modified by users |
updatable is false, the column becomes read-only for that property regardless of the sheet configuration setting.
Common Read-Only Patterns
outlineNumber and id are read-only with visual indicators, while title and description remain editable.
Verify
After saving the sheet configuration, reload the powersheet document. You should now see read-only columns with a different visual appearance (grey background if a read-only formatter is applied). Attempting to click or type in a read-only cell should have no effect.See also
- Add a Column
- Configure a Formatter
- Apply Column Styles
- Set Entity Permissions
- Sheet Configuration Guides
Sources
Sources
KB ArticlesSource Code
configContext.tsprod-powersheet-src/com.nextedy.powersheet.client/src/modules/ConfigProvider/ConfigProvider.tsxprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/SheetComponent.tsxprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yamlpowersheet.yaml