Skip to content

Data Grid — Rows & cells

Data Display

Cell templates, value formatting, text overflow, row classes and expandable detail rows.

Examples

Cell templates, formatting and row classes

cellTemplate renders any markup for a column (the context gives row and value ). type: 'number' with numberFormat: 'currency' formats values, textOverflow picks ellipsis , wrap or clip , and [rowClassFn] adds classes to whole rows.

No filters active
T-101 Invoices are exported with the wrong VAT rate for customers in Germany High €12,500.00
T-102 Add dark mode to the reports page Low €800.00
T-103 Password reset email arrives after 20 minutes Medium €3,200.00
T-104 Dashboard totals do not match the monthly statement High €18,900.00

Expandable detail rows

Pass an ng-template to [detailTemplate] and each row gets an expand toggle that shows the template under it (the context's $implicit is the row). Set [multiExpand]="false" to keep one row open at a time.

No filters active