Limits
NextGrid enforces explicit, bounded resource limits across DOM pooling, layout geometry, pivot columns, menus, and remote metadata so pathological inputs fail fast instead of exhausting browser memory.
Architectural Bounds & Safety Caps
Section titled “Architectural Bounds & Safety Caps”| Subsystem | Limit / Default | Notes |
|---|---|---|
| Parent DOM Allocation Ceiling | 4,096 logical rows / content shells, 262,144 cell slots |
Includes body, pinned regions, content shells, and intersecting span anchors |
| Pinned Rows & Totals | 100 entries per region (top / bottom) |
Combined cap across supplied pinnedRows and projected pinnedTotals |
| Minimum Body Height & Center Width | 80 px (minBodyHeight), 120 px (minCenterWidth) |
Commands overrunning bounds reject; external shrinks expose footer recovery buttons |
| Row Height Bounds | 8 – 100,000 px (rowHeightBounds) |
Uniform rowHeight defaults to 26 px (22 px in compact); intrinsic measurement accepts at most 3 corrections (0.5 px tolerance) per causal epoch |
| Cell Spans | 1,000 declarations, 100 × 100 (10,000 cells) per span, 100,000 total |
Invalid or overlapping declarations reject atomically |
| Client Pivot Columns | 256 default (1..4,096 via setPivotColumnLimit) |
Includes row-total columns; inactive result-column states use a 512-entry LRU |
| Server Hierarchy Metadata | 10,000 entries (maxHierarchyMetadataEntries) |
Adjustable via setHierarchyMetadataLimit(limit) |
| Remote Cache Defaults & Maxima | blockSize: 100 (10,000 max), maxBlocks: 10 (1,000), maxConcurrentRequests: 2 (32), prefetchBlocks: 1 (1,000), retryCount: 2 (10), retryDelayMs: 100 (60,000) |
Configured in remoteOptions |
Menus (columnMenu / bodyMenu) |
64 total items, 32 custom items |
Synchronous getItems / getMenuItems providers and custom actions |
| Clipboard, Fill & History | clipboard.maxCells: 50,000, maxTextLength: 1,000,000; fill.maxCells: 10,000; history.maxEntries: 100 |
Configurable safety caps |