How Row Headers Work
Row headers appear on the left side of the grid and display the work item ID (systemItemId) for each row. You assign a custom renderer function that applies conditional CSS classes based on work item data.
info.item['fieldId'] to access any field on the work item. In this example, it reads the rpnNew field (revised RPN after mitigations) and applies color classes based on risk thresholds.
Step 2: Assign the Renderer to Row Headers
Reference the renderer function in theheaders.rowHeader.renderer property:
renderer value must match the key name in the cellDecorators object exactly.
Step 3: Define Supporting Styles
Ensure the CSS classes referenced in the renderer are defined instyles:
Row Header Renderer with Enum Values
For row headers colored by enum field values such as severity level, compare against the enum IDs:Row Header Merging
When using multi-level hierarchies, row headers automatically merge vertically for consecutive rows that share the samesystemItemId. This creates a single colored header cell spanning multiple sub-rows:
- Multiple rows belonging to the same work item (for example, multiple causes for one failure mode) display a single merged row header
- The merged row header color is based on the parent work item’s field values
Complete Example
Troubleshooting
| Problem | Cause | Solution |
|---|---|---|
| Row header has no color | Renderer name mismatch | Verify headers.rowHeader.renderer matches cellDecorators key exactly |
| Color always the same | Comparing display name instead of ID | Use enum IDs in comparisons, not display names |
| Styles not applying | Missing !important | Add !important to CSS properties in styles |
| Calculated values empty | Data imported but not edited in Risksheet | Edit items in Risksheet or use data sync (v24.5.1+) |
Verification
After saving your configuration changes and reloading the page, you should now see:- Row header cells colored based on the field values defined in your renderer function
- Low-risk items with green row headers, medium with yellow, high with red (for the RPN-based example)
- Merged row headers maintaining the correct color for hierarchical multi-level rows
See Also
- Configure Cell Styles — style definition fundamentals
- Apply Conditional Formatting — cell decorator function reference
- Configure Item Colors — severity-based coloring patterns
- Styling and Formatting — overview of all styling options
Sources
Sources
KB ArticlesSupport TicketsSource Code
risksheet.jsonAppConfig.tsExportToExcel.tsAppConfigHelper.tsSheetConstants.ts