Skip to content

Data Grid — Feature tour

Data Display

Async data, per-column sorting and filtering switches, toolbar actions, export and more in one grid.

Examples

Feature tour

Showcasing new features: async pipe support, per-column filterable/sortable, simplified contains-only filtering, and default page size of 10.

1. Async Pipe Support (nullable dataSource)

The grid accepts null or undefined from an Observable via the async pipe. The data loads after a 2-second simulated delay.

No filters active
1 Alice Johnson Engineering Senior Dev
2 Bob Smith Engineering Tech Lead
3 Carol Williams Design UX Designer
4 David Brown Marketing Marketing Manager
5 Eve Davis Engineering Junior Dev

2. Per-Column filterable / sortable

Each column can independently enable or disable sorting and filtering. In this example: ID has no sorting and no filtering, Name has both, Department has sorting but no filtering, Role has filtering but no sorting, and Salary has both.

No filters active
1 Alice Johnson Engineering Senior Dev 95000
2 Bob Smith Engineering Tech Lead 120000
3 Carol Williams Design UX Designer 85000
4 David Brown Marketing Marketing Manager 90000
5 Eve Davis Engineering Junior Dev 65000

3. Default Page Size (5)

When no pageSize is provided, the grid defaults to showing 5 rows per page. The page size select also pre-selects "5".

No filters active
1 Alice Johnson Engineering Senior Dev 95000 2020-03-15
2 Bob Smith Engineering Tech Lead 120000 2018-07-01
3 Carol Williams Design UX Designer 85000 2021-01-10
4 David Brown Marketing Marketing Manager 90000 2019-09-20
5 Eve Davis Engineering Junior Dev 65000 2023-06-01

4. Simplified Column Filtering

Column filters use a simple text input with "contains" logic. No operator button is shown. Type in a filter field below and results update after a 300ms debounce.

No filters active
1 Alice Johnson Engineering Senior Dev 95000 2020-03-15
2 Bob Smith Engineering Tech Lead 120000 2018-07-01
3 Carol Williams Design UX Designer 85000 2021-01-10
4 David Brown Marketing Marketing Manager 90000 2019-09-20
5 Eve Davis Engineering Junior Dev 65000 2023-06-01

5. Total Count Footer (resource pattern)

The grid displays a total record count in the footer via showTotalCount. Data is fetched using Angular's resource() API — the loading state drives a shimmer animation on the count area. Click "Reload" to observe the shimmer during fetch.

No filters active
1 Alice Johnson Engineering Senior Dev
2 Bob Smith Engineering Tech Lead
3 Carol Williams Design UX Designer
4 David Brown Marketing Marketing Manager
5 Eve Davis Engineering Junior Dev
6 Frank Wilson HR HR Specialist
7 Grace Lee Engineering DevOps Engineer
8 Henry Martin Design Product Designer
9 Iris Chen Engineering Staff Engineer
10 Jack Taylor Marketing Content Writer
11 Kate Anderson Engineering Senior Dev
12 Leo Thomas HR HR Director

6. Total Count with Pagination

When showTotalCount is combined with paginated, the footer shows the standard "Showing X–Y of Z" text alongside pagination controls.

No filters active
1 Alice Johnson Engineering Senior Dev 95000 2020-03-15
2 Bob Smith Engineering Tech Lead 120000 2018-07-01
3 Carol Williams Design UX Designer 85000 2021-01-10
4 David Brown Marketing Marketing Manager 90000 2019-09-20
5 Eve Davis Engineering Junior Dev 65000 2023-06-01

7. Themed Surface

The grid renders on the shared ATLAS_SURFACE_CLASS recipe — radius and elevation come from the active theme's --surface-radius and --surface-shadow tokens. To flatten a single grid (e.g. when nesting inside a atlas-card), set --atlas-grid-shadow: none.

No filters active
1 Alice Johnson Engineering Senior Dev 95000 2020-03-15
2 Bob Smith Engineering Tech Lead 120000 2018-07-01
3 Carol Williams Design UX Designer 85000 2021-01-10
4 David Brown Marketing Marketing Manager 90000 2019-09-20
5 Eve Davis Engineering Junior Dev 65000 2023-06-01

8. Spinner Overlay (refresh with existing data)

When loading is true and the grid already has data, a semi-transparent overlay with a spinner appears instead of skeleton rows. Click "Simulate Refresh" to see the overlay for 2 seconds.

No filters active
1 Alice Johnson Engineering Senior Dev
2 Bob Smith Engineering Tech Lead
3 Carol Williams Design UX Designer
4 David Brown Marketing Marketing Manager
5 Eve Davis Engineering Junior Dev