---
url: https://akinozgen.github.io/datagrids/errors/DG013.md
description: >-
  One datagrids warning or error code — the message, when it happens and how to
  fix it.
---

# DG013: Page size above maxPageSize

```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.

## Related

* [All warning codes](/errors/)
* [Grid options](/reference/options)
* [Static API & configure()](/reference/static)
