-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGridPro] Cannot use component from @mui/x-data-grid
in a @mui/x-data-grid-pro
#2245
Closed
2 tasks done
Labels
Comments
tjgibbs92
added
the
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
label
Jul 30, 2021
You are importing components from import {
DataGrid,
escapeRegExp,
GridToolbarDensitySelector,
GridToolbarFilterButton
} from "@material-ui/data-grid"; and then use these in the You can change the import to come from import {
DataGrid,
escapeRegExp,
GridToolbarDensitySelector,
GridToolbarFilterButton
} from "@material-ui/x-grid"; To have the context it seems necessary to only use components from the same package. I did the same thing and ended up with the same error a few days ago 😁 |
Interesting, this issue makes the case for #924 (comment) |
This comment has been minimized.
This comment has been minimized.
flaviendelangle
added
component: data grid
This is the name of the generic UI component, not the React module!
new feature
New feature or request
and removed
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
labels
Aug 2, 2021
flaviendelangle
changed the title
XGrid: Could not find the data grid context.
[XGrid] Cannot use component from Aug 2, 2021
@material-ui/data-grid
in a XGrid
This comment has been minimized.
This comment has been minimized.
oliviertassinari
added
the
ready to take
Help wanted. Guidance available. There is a high chance the change will be accepted
label
Aug 6, 2021
oliviertassinari
removed
the
ready to take
Help wanted. Guidance available. There is a high chance the change will be accepted
label
Aug 9, 2021
oliviertassinari
changed the title
[XGrid] Cannot use component from
[DataGridPro] Cannot use component from Nov 12, 2021
@material-ui/data-grid
in a XGrid
@mui/x-data-grid
in a @mui/x-data-grid-pro
oliviertassinari
added
components: DataGridPro
and removed
component: data grid
This is the name of the generic UI component, not the React module!
labels
Nov 12, 2021
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Behavior 😯
I'm trying to mix the Quick Filter Example with XGrid Multiple column filtering for some of our more needy end users. So I figured that just adding the
QuickSearchToolbar
from the Quick Filter Example would transfer seamlessly. But XGrid is throwing the errorExpected Behavior 🤔
The Quick Filter Example should show with
XGrid
.Steps to Reproduce 🕹
https://codesandbox.io/s/material-demo-forked-w2316?file=/demo.js
Above is the broken link but it works perfectly if you change
XGrid
toDataGrid
at line 111.Context 🔦
I'm attempting to give a user multiple avenues of filtering. They could filter globally or filter by the column.
Your Environment 🌎
`npx @material-ui/envinfo`
Order id 💳
#27386
The text was updated successfully, but these errors were encountered: