Skip to content

Getting Started

ZenGrid renders only the rows you can see — a million-row dataset stays a handful of DOM nodes. This guide gets a grid on screen fast, then lets you edit it live.

npm i @zengrid/core

The panel below runs the real @zengrid/core in your browser — no sandbox, no sign-up. It opens on the rendered grid; switch to Code or Split with the toggle to edit the config. Changes re-render as you type (or hit Run / ⌘/Ctrl + Enter) — try changing a width, renaming a header, toggling sortable, or reordering the columns.

Here’s the same setup as a copy-paste starting point.

  1. Import the grid and its stylesheet.

    import { Zengrid } from '@zengrid/core';
    import '@zengrid/core/dist/styles.css';
  2. Create a grid against a mount element.

    const grid = new Zengrid(document.getElementById('app')!, {
    rowCount: 1_000_000,
    columns: [
    { field: 'name', header: 'Name', width: 240, sortable: true },
    { field: 'region', header: 'Region', width: 160 },
    { field: 'revenue', header: 'Revenue', width: 160 },
    ],
    });
  3. Feed it data — setData renders automatically.

    grid.setData(rows);

    Disabling auto-render? Call grid.render() yourself after setData.

  • Browse the Feature Matrix to see what ships in each version and tier.
  • Read the Release Notes for what changed between versions.
  • Explore individual features in the sidebar — each one includes a live, working demo.