Filtering with isRowSelectable
and treeData
results in a crash when a row is selected
#15045
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
support: premium standard
Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-ayw1zv-qxwdvx?file=Demo.js
Steps:
treeData={true}
andisRowSelectable={() => true}
.Current behavior
The page crashes with the following error:
Expected behavior
The page should not crash and filter correctly.
Context
I'm aware that the error
MUI X: The `filterMode="server"` prop is not available when the `treeData` is enabled.
is logged. When not usingisRowSelectable
everything works fine though.I want to select child rows in the DataGrid and keep that selection when using filters.
Currently, I bypass the issues by not setting
isRowSelectable
, but by providing a customrenderCell
to my custom checkbox column that is mostly based onGRID_CHECKBOX_SELECTION_COL_DEF
.Your environment
npx @mui/envinfo
Search keywords: DataGrid isRowSelectable treeData filter
Order ID: 95669
The text was updated successfully, but these errors were encountered: