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.
Install
Section titled “Install”npm i @zengrid/corepnpm add @zengrid/coreyarn add @zengrid/coreTry it live
Section titled “Try it live”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.
The code, explained
Section titled “The code, explained”Here’s the same setup as a copy-paste starting point.
-
Import the grid and its stylesheet.
import { Zengrid } from '@zengrid/core';import '@zengrid/core/dist/styles.css'; -
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 },],}); -
Feed it data —
setDatarenders automatically.grid.setData(rows);Disabling auto-render? Call
grid.render()yourself aftersetData.
Where to next
Section titled “Where to next”- 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.