Skip to content

DG006: No grid with that name ​

Console warning
text
[datagrids DG006] Datagrids.reload(`{name}`): no grid with that name.

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

When it happens ​

reload(name) found no live grid registered under name; it returns false and does nothing. A grid registers its name option when it is created and unregisters on destroy().

How to fix it ​

Give the grid a name and make sure it exists when you reload it:

js
new Datagrid("#agents", { name: "agents", label: "Agents", columns });
reload("agents", { keepPage: true });

Use find(name) to check for a grid without a warning.

Released under the MIT License.