experiment_id: web-retrieval-v1
fixture_id: /docs/v1/api/methods/usage
mode: provenance
representation: html
origin_response_id: 708e97e0e2fcdb13f240d5256afd2323
version: 2026-10-21
version_created_at_utc: 2026-10-21T20:42:35.742Z
version_nonce: a00129845beb2af7c72f1d70812f1e69
generated_at_utc: 2026-11-13T11:27:08.229Z
response_nonce: 68d2c47079ec7b03132f22e29f192e75
Docs Version 1

API Methods Usage

ZingGrid provides a rich API for controlling grid interactions, from re-rendering to adjusting user interactions (like paging) through JavaScript. As an object, ZingGrid comes with its own set of methods that get/set properties and manipulate its contents.

Methods Usage

The example below changes the current grid page with nextPage(). After selecting the ZingGrid instance, we wait until it is ready (executeOnLoad()), and then run the method to update the page.

const zgRef = document.querySelector('zing-grid');
zgRef.executeOnLoad(function() {
  zgRef.nextPage();
});

executeOnLoad() will ensure the grid is fully ready before executing your code. In most cases, if you execute your code below the grid instance in the DOM, this can be omitted.

Top

[api: Usage Guide]

On This Page