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] I would like to display the data-grid filter panel elsewhere #13537

Open
jvskriubakken opened this issue Jun 19, 2024 · 2 comments
Open
Labels
component: data grid This is the name of the generic UI component, not the React module! customization: extend Logic customizability feature: Filtering Related to the data grid Filtering feature status: waiting for author Issue with insufficient information support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@jvskriubakken
Copy link

jvskriubakken commented Jun 19, 2024

The problem in depth

I do not like how the filter panel is displayed by default, as it hides the first rows in the grid. Making it difficult for the user to see if he/she is happy with the search result.

Therefore I would like to display it rather inlined above (in the grid toolbar) or below (in the grid footer) the grid. Also the possibility to render it completely somewhere else.

But I struggle to find any good examples on this.

Your environment

System:
    OS: macOS 14.2.1
  Binaries:
    Node: 18.20.2 - /usr/local/bin/node
    npm: 10.5.0 - /usr/local/bin/npm
    pnpm: 8.15.4 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 126.0.6478.62
    Edge: Not Found
    Safari: 17.2.1
  npmPackages:
    @mui/base:  5.0.0-beta.40 
    @mui/core-downloads-tracker:  5.15.19 
    @mui/icons-material: 5.15.15 => 5.15.15 
    @mui/lab: 5.0.0-alpha.170 => 5.0.0-alpha.170 
    @mui/material: 5.15.19 => 5.15.19 
    @mui/private-theming:  5.15.14 
    @mui/styled-engine-sc: npm:@mui/styled-engine-sc@latest => 6.0.0-alpha.17 
    @mui/styles: 5.15.19 => 5.15.19 
    @mui/system:  5.15.15 
    @mui/types:  7.2.14 
    @mui/utils:  5.15.14 
    @mui/x-charts: 7.6.2 => 7.6.2 
    @mui/x-data-grid:  7.6.2 
    @mui/x-data-grid-premium: 7.6.2 => 7.6.2 
    @mui/x-data-grid-pro:  7.6.2 
    @mui/x-date-pickers:  7.6.2 
    @mui/x-date-pickers-pro: 7.6.2 => 7.6.2 
    @mui/x-license:  7.6.1 
    @mui/x-tree-view: 7.6.2 => 7.6.2 
    @types/react: 18.3.1 => 18.3.1 
    react: 18.3.1 => 18.3.1 
    react-dom: 18.3.1 => 18.3.1 
    styled-components: 6.1.8 => 6.1.8 
    typescript: 5.4.5 => 5.4.5 

Search keywords: data grid filter panel
Order ID: 54140

@jvskriubakken jvskriubakken added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Jun 19, 2024
@harshanimmala-sureify
Copy link

You can use GridFilterPanel component. This would allow you to render the same component outside. You can disable the existing panel via props.

@michelengelen michelengelen added component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature customization: extend Logic customizability support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ labels Jun 19, 2024
@michelengelen michelengelen changed the title [question] I would like to display the data-grid filter panel elsewhere [data grid] I would like to display the data-grid filter panel elsewhere Jun 19, 2024
@michelengelen
Copy link
Member

You can change the anchor of the filterpanel. This can also be one that is outside of the grid afaik. Here is the respective docs page: Custom filter panel position

@michelengelen michelengelen added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jun 19, 2024
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: extend Logic customizability feature: Filtering Related to the data grid Filtering feature status: waiting for author Issue with insufficient information support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

No branches or pull requests

3 participants