Changelog
Source:NEWS.md
muiDataGrid (development version)
- Server-side filtering fixes and additions:
- The boolean
isfilter now matches logical columns (MUI sends"true"/"false", which previously matched nothing against R’sTRUE/FALSE). - Filter items with an empty value (cleared text input, all
isAnyOfchips removed, boolean “any”) are now ignored, matching MUI’s client-side behavior. Previously an emptied number filter could blank the whole grid. - The toolbar quick filter is now applied server-side: terms match case-insensitively against every column except
id, combine perquickFilterLogicOperator, and are ANDed with regular filter items.
- The boolean
- The first automatic render of
DataGridServer()now slices the page described by a user-suppliedinitialState(itspaginationModel), so the served rows match the grid’s pagination footer on first paint. When bothinitialStateandinitialPageSizeare given,initialStatewins andinitialPageSizeis ignored (with a warning). -
DataGrid()andDataGridServer()now reject non-data.framerowswith a clear error, and the duplicate-id warning also coversNAids. -
DataGridServer()messages when called without a running Shiny session (interactively or while knitting), pointing toDataGrid()for static use. - Date filters parse whole columns vectorized (with per-element fallback), making date filtering much faster on large data.
- JavaScript build now uses yarn/
yarn.lockexclusively, matching CI andreinstall.sh(removed the stalepackage-lock.json, which was never used for builds and had drifted; ajs/.npmrcprevents npm from recreating it). Added@mui/x-internalstoresolutions: version 9.8.0 (still within the declared^9.1.0range) removed platform exports that the bundled@mui/x-virtualizerneeds, breaking fresh builds. Thereact-is18 pin is kept and now documented injs/webpack.config.js— react-is 19 cannot detect React 18 elements, and shiny.react provides a React 18 runtime.
muiDataGrid 0.1.2
CRAN release: 2026-06-20
-
DataGrid()now infers MUI column types from R classes (numeric columns becomenumber, logical columnsboolean) and warns when a suppliedidcolumn contains duplicate values. - Added server-side support via
DataGridServer()andprocessGridParams(), which apply pagination, sorting, and filtering in R and send only the current page to the browser. The sort/filter pass is memoized so paginating a large dataset no longer re-sorts every row on each page change. -
DataGridServer()hardened: validatesinitialPageSizeagainstpageSizeOptions, rejects two live outputs sharing oneinputId, warns whennrow(rows)exceeds a manualrowCount, and strips protected props (paginationMode,sortingMode,filterMode,pagination). - Filter input in the server grid is now debounced independently of pagination and sorting changes.
- Bundled MUI X Data Grid locales for multi-language support.
- Require
muiMaterial(>= 0.2.0) and warn at attach if an incompatible version is installed, since the grid shares its bundled MUI runtime. - Documented attribution and licensing for the bundled MUI X Data Grid JavaScript (see
LICENSE.note).