WarUI

Null, Empty and NaN Placement

GRID-A09-F11P0beyond-baselinePlanned

Developers choose where null, undefined, empty strings and NaN appear: first, last, or treated like an ordinary value. The placement can either stay fixed in both directions or reverse when the sort direction reverses. Each category can be configured separately, which removes ambiguity around missing data.

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

Live example

A transactions grid with an Amount column containing numbers, null, undefined, NaN and '' (empty string).

Expected behavior

With nullsPosition='last' and placementFollowsDirection=false, null values stay at the bottom in both directions. With placementFollowsDirection on, they move to the top when the direction is descending. The relative order of the categories follows a documented table.

Planned API surface

nullsPositionemptyStringPositionnanPositioncolumns[].nullsPositionplacementFollowsDirectionisEmptyValue

Acceptance criteria

  • null and undefined are treated as the same category by default (pending)
  • asNull places a category in the same block as null (pending)
  • Inside a single category, rows keep their stable original order (pending)
  • isEmptyValue can classify additional values as empty (pending)
  • Placement is applied before the custom comparator unless comparatorHandlesEmpty=true (pending)