Auto items per page
The example and code below show what you need to get auto items per page functionality for the pagination of a datagrid.
Resize the page vertically to see the number of rows being displayed per page adapt to the available height.
The AutoItemsPerPage
parameter must be set to true and obviously Pagination
must be used as well for this to work.
Also, the DataGrid
An example of how that can be done for this demo site layout is shown in the <style> section below
Code | Gold | Silver | Bronze | Total |
---|---|---|---|---|
al | 0 | 0 | 2 | 2 |
dz | 2 | 0 | 1 | 3 |
ar | 1 | 1 | 1 | 3 |
am | 0 | 3 | 1 | 4 |
au | 18 | 19 | 16 | 53 |
at | 2 | 0 | 3 | 5 |
az | 2 | 2 | 3 | 7 |
be | 3 | 1 | 6 | 10 |
bh | 2 | 1 | 1 | 4 |
bw | 1 | 1 | 0 | 2 |
91 items
Download: