GridVirtualizer

Primitive #44

🔍 Problem it solves

Large grids (like spreadsheets) with 1000x1000 cells need virtualization in both dimensions (rows and columns). Rendering all cells would freeze the browser and consume enormous memory.

✅ Solution

GridVirtualizer renders only visible cells based on scroll position in both directions. It uses fixed row height and column width, and renders a small buffer (overscan) to avoid white gaps. This demo shows a 1000×100 grid – only ~500 cells are ever in the DOM, not 100,000.

🧩 Used by components

DataGrid, Spreadsheet, DashboardWidgets, CalendarView, Timetable

🎮 Interactive demo