WarUI

Computed values in sort, filter, aggregate and display

GRID-A13-F18P1baselinePlanned

Sorting, filtering, grouping and aggregation all use computed formula values rather than raw formula text. A 'show formulas' view mode displays the raw formulas for auditing. Value formatters apply to the computed results.

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

Live example

A product grid with a computed Margin column, number formatting and a filter row.

Expected behavior

Sorting orders rows by numeric margin. The filter uses the computed values. In showFormulas mode, cells display their formula text and the columns widen.

Planned API surface

option: formulas.showFormulasmethod: api.getCellValue(rowId,colId)method: api.getCellFormula(rowId,colId)method: api.setCellFormula(rowId,colId,text)

Acceptance criteria

  • Sort and filter comparators receive the computed values. (pending)
  • Error values sort last, in a documented order. (pending)
  • Changing a precedent re-applies the active filters and sort when the option is set. (pending)
  • getCellValue and getCellFormula return the computed value and the source formula respectively. (pending)