Skip to content

DG013: Page size above maxPageSize ​

Console warning
text
[datagrids DG013] Page size {size} exceeds maxPageSize {max}; clamped.

Printed with console.warn, once per distinct message. configure({ warnings: false }) silences it.

When it happens ​

grid.pageSize(n) (also used by the page-size menu) got a value above maxPageSize (default 1000) or a negative value; the size is clamped to maxPageSize. -1 ("All") is accepted only when the protocol allows it (ssp({ allowAll: true })). The initial pageSize option is not checked.

How to fix it ​

Keep pageSizes within maxPageSize, or raise the limit for this grid with maxPageSize: 5000. For lists that must show everything, prefer client mode (fetchAll) and a server-side export.

Released under the MIT License.