WarUI

Master-detail with nested grids

GRID-A17-F13P1baselinePlanned

A detail panel can host a full child WarGrid with its own columns, sorting, filtering and selection, bound to the master row. Nesting can go several levels deep, and the parent can reach child grid APIs. This covers classic order and order-line views.

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

Live example

A customers grid. The second customer's orders grid is expanded.

Expected behavior

Child grids work independently. The button uses forEachDetailGrid to select rows in every open child. With depth 3, each order can also expand to show its lines.

Planned API surface

masterDetaildetailGridOptionsgetDetailRowData(params)getDetailGridApi(rowId)forEachDetailGriddetailGridInheritTheme

Acceptance criteria

  • A child grid's sort and filter do not affect the master (pending)
  • getDetailGridApi returns null for collapsed details (pending)
  • A child grid is disposed on collapse unless keepDetailAlive is true (pending)
  • Theme and density are inherited when the option is enabled (pending)
  • Child grid scrolling does not hijack master grid scrolling until the child reaches its scroll edge (pending)