-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ
The stylesheet isn't imported. Add this once, in your app's root file:
import '@opencorestack/opengridx/styles';The grid's container has no bounded height, so the grid grows to fit all rows and virtualization has nothing to do. Give it a height prop, or put it in a container with a definite height and min-height: 0 on every flex or grid item in between. Development builds log a warning about this. See Virtualization.
Pagination hides the problem (each page is short), and row grouping turns pagination off, which is often when it first shows up.
Without a height prop the grid fills its parent. A parent with no height of its own (for example a plain div in an auto-height page) gives it nothing to fill. Set a height on the parent or pass height.
Yes. React 18 and 19 are supported, and every release is tested in apps on both versions before it is published.
Yes, as a client component. Render DataGrid from a file that starts with 'use client', and import the stylesheet in app/layout.tsx.
Only for exportToExcelAdvanced (exceljs) and exportToPdf (jspdf and jspdf-autotable). They are optional peer dependencies, loaded on demand, and never bundled. CSV, JSON, basic Excel and print exports need nothing extra.
Pass getRowId: getRowId={(row) => row.code}. The id only keys the grid's internal store; it is never written onto your row.
Since 3.2.0 exportToPdf works in short slices and keeps the page responsive, with onProgress and an AbortSignal for a progress bar and a cancel button. Above maxRows (20,000 by default) a development warning suggests CSV or Excel, which are much faster for large data. See PDF Export.
3.0 stopped writing fields onto your rows. Hierarchy information is in params.rowMeta. See Migrating v2 → v3.
Use sortComparator on the column (3.1.0+). It receives the two values plus their row params and sorts ascending; the grid reverses it for descending. See Sorting & Pagination.
Double-click the column's resize handle (or focus it and press Enter), or call apiRef.current.autosizeColumn(field) / autosizeColumns() (3.1.0+). Only rendered rows are measured.
Open an issue with a minimal reproduction. For security problems, report privately instead: see the security policy.
OpenGridX 3.2.2 · MIT · This wiki is generated from docs/ on every push to main. To fix a page, open a PR against the source file.
Start here
Components
- DataGrid
- Header
- Row
- Cell
- Toolbar
- Pagination
- Filter Panel
- Tooltip
- Column Visibility
- Column Grouping
- Column Resizing
- Empty State
- Error Overlay
- Aggregation Footer
Features
- Virtualization
- Filtering & Search
- Sorting & Pagination
- Custom Pagination
- Editing & Reordering
- Row Selection
- Clipboard
- Pinning
- State Persistence
- Aggregation & Pivot
- Tree Data & Grouping
- Cell Spanning
- Master-Detail
- Keyboard & Accessibility
- List View
- Infinite Scroll
- Data Source
- Loading States
- Toolbar Customization
- Export (CSV, Excel, JSON, Print)
- PDF Export
Customization
Upgrading
Contributing
- Contributing
- Testing
- Roadmap
- DataGrid orchestration
- GridRowMeta
- useGridControlledState
- useGridRowPipeline
- useGridColumns
- useGridVirtualization
- useGridVisibleRows
- useGridScrollSync
- useGridStateSnapshot