Skip to content

Data Grid — Scrolling & height

Data Display

Grow with the content, scroll inside a fixed height, cap the height, or fill the parent container.

Examples

Fixed height and maximum height

By default ( height="auto" ) the grid grows with its rows. A fixed height scrolls the rows under a sticky header; maxHeight lets a short grid shrink and scrolls only past the limit.

height="280px"

No filters active
S-001 Hall A 18
S-002 Hall B 19
S-003 Roof 20
S-004 Basement 21
S-005 Hall A 22
S-006 Hall B 23
S-007 Roof 24
S-008 Basement 25
S-009 Hall A 26
S-010 Hall B 18
S-011 Roof 19
S-012 Basement 20
S-013 Hall A 21
S-014 Hall B 22
S-015 Roof 23
S-016 Basement 24
S-017 Hall A 25
S-018 Hall B 26
S-019 Roof 18
S-020 Basement 19
S-021 Hall A 20
S-022 Hall B 21
S-023 Roof 22
S-024 Basement 23
S-025 Hall A 24
S-026 Hall B 25
S-027 Roof 26
S-028 Basement 18
S-029 Hall A 19
S-030 Hall B 20

maxHeight="280px"

No filters active
S-001 Hall A 18
S-002 Hall B 19
S-003 Roof 20
S-004 Basement 21
S-005 Hall A 22
S-006 Hall B 23
S-007 Roof 24
S-008 Basement 25
S-009 Hall A 26
S-010 Hall B 18
S-011 Roof 19
S-012 Basement 20
S-013 Hall A 21
S-014 Hall B 22
S-015 Roof 23
S-016 Basement 24
S-017 Hall A 25
S-018 Hall B 26
S-019 Roof 18
S-020 Basement 19
S-021 Hall A 20
S-022 Hall B 21
S-023 Roof 22
S-024 Basement 23
S-025 Hall A 24
S-026 Hall B 25
S-027 Roof 26
S-028 Basement 18
S-029 Hall A 19
S-030 Hall B 20

Fill the parent

height="100%" makes the grid fill a parent with a bounded height (here a resizable panel): toolbar and footer stay put and the rows scroll in between.

No filters active
1 Task 1 Ana
2 Task 2 Mihai
3 Task 3 Elena
4 Task 4 Andrei
5 Task 5 Ana
6 Task 6 Mihai
7 Task 7 Elena
8 Task 8 Andrei
9 Task 9 Ana
10 Task 10 Mihai
11 Task 11 Elena
12 Task 12 Andrei
13 Task 13 Ana
14 Task 14 Mihai
15 Task 15 Elena
16 Task 16 Andrei
17 Task 17 Ana
18 Task 18 Mihai
19 Task 19 Elena
20 Task 20 Andrei
21 Task 21 Ana
22 Task 22 Mihai
23 Task 23 Elena
24 Task 24 Andrei
25 Task 25 Ana

Drag the panel's bottom-right corner to resize it.

Data loaded, 40 row(s)