Skip to content
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

[data grid] Is there a recommended way to restyle the DataGrid filters? [question] #6452

Closed
2 tasks done
nmalancea opened this issue Oct 11, 2022 · 2 comments
Closed
2 tasks done
Labels
component: data grid This is the name of the generic UI component, not the React module! customization: css Design CSS customizability feature: Filtering Related to the data grid Filtering feature support: commercial Support request from paid users support: question Community support but can be turned into an improvement

Comments

@nmalancea
Copy link

Order ID 💳

51344

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

The problem in depth 🔍

The current filters show up on top of the data. Is there a recommended way to change that, having the filter inputs show outside of the grid (not overlaid)?

Your environment 🌎

`npx @mui/envinfo`
  System:
    OS: macOS 12.5
  Binaries:
    Node: 18.9.0 - ~/.nvm/versions/node/v18.9.0/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 8.19.1 - ~/.nvm/versions/node/v18.9.0/bin/npm
  Browsers:
    Chrome: 106.0.5249.103
    Edge: Not Found
    Firefox: Not Found
    Safari: 15.6
  npmPackages:
    @emotion/react: ^11.10.4 => 11.10.4 
    @emotion/styled: ^11.10.4 => 11.10.4 
    @mui/base:  5.0.0-alpha.98 
    @mui/core-downloads-tracker:  5.10.6 
    @mui/icons-material: ^5.10.6 => 5.10.6 
    @mui/lab: ^5.0.0-alpha.101 => 5.0.0-alpha.101 
    @mui/material: ^5.10.6 => 5.10.6 
    @mui/private-theming:  5.10.6 
    @mui/styled-engine:  5.10.6 
    @mui/system:  5.10.6 
    @mui/types:  7.2.0 
    @mui/utils:  5.10.6 
    @mui/x-data-grid:  5.17.3 
    @mui/x-data-grid-premium: ^5.17.3 => 5.17.3 
    @mui/x-data-grid-pro:  5.17.3 
    @mui/x-license-pro:  5.17.0 
    @types/react: ^18.0.0 => 18.0.20 
    react: ^18.2.0 => 18.2.0 
    react-dom: ^18.2.0 => 18.2.0 
    typescript: ^4.4.2 => 4.8.3 

Brave browser.
@nmalancea nmalancea added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Oct 11, 2022
@flaviendelangle flaviendelangle changed the title Is there a recommended way to restyle the DataGrid filters? [question] [data grid] Is there a recommended way to restyle the DataGrid filters? [question] Oct 17, 2022
@flaviendelangle flaviendelangle added the component: data grid This is the name of the generic UI component, not the React module! label Oct 17, 2022
@yaredtsy
Copy link
Contributor

@nmalancea I do not know if there is an official way. here is my solution https://codesandbox.io/s/admiring-wing-lgvys6?file=/demo.tsx

@cherniavskii
Copy link
Member

Hey @nmalancea
As @yaredtsy said - you can style it with CSS.
It's also possible to render filters panel outside of data grid using React Portal - see #2522 (comment)

@cherniavskii cherniavskii added support: question Community support but can be turned into an improvement feature: Filtering Related to the data grid Filtering feature customization: css Design CSS customizability and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! customization: css Design CSS customizability feature: Filtering Related to the data grid Filtering feature support: commercial Support request from paid users support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

4 participants