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

[DataGrid] Custom filter panel #3384

Closed
2 tasks done
m-claes opened this issue Dec 9, 2021 · 1 comment
Closed
2 tasks done

[DataGrid] Custom filter panel #3384

m-claes opened this issue Dec 9, 2021 · 1 comment
Labels
component: data grid This is the name of the generic UI component, not the React module! support: Stack Overflow Please ask the community on Stack Overflow

Comments

@m-claes
Copy link

m-claes commented Dec 9, 2021

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

To speed up the filtering process for end users would it be possible to provide a direct filter box below the column name (see example screenshot). This way the user has direct access to filtering without the need to go the the filtering menu.

Examples 🌈

Example 1;
image

Example 2:
image

Motivation 🔦

Speed up filtering process for grid users.

@mnajdova mnajdova transferred this issue from mui/material-ui Dec 9, 2021
@DanailH
Copy link
Member

DanailH commented Dec 10, 2021

Hi, @m-claes thanks for raising this. There are a couple of ways you can achieve this with what we currently have. Here are the options:

  1. You can provide your own component for a column header. Then if you are a DataGridPro user you can use the apiRef to do the filtering. You can check more about it here -> https://mui.com/components/data-grid/columns/#render-header
  2. A simpler solution may be to provide your own filter panel. That way you can position it almost anywhere you like (in the second example the filter looks like a row so that wouldn't be possible but you can put it on the side or in the toolbar). There was a similar issue in the past. You can check it here -> [DataGrid] Control positions of filters and column pop over #3155 (comment)

@DanailH DanailH added component: data grid This is the name of the generic UI component, not the React module! support: question Community support but can be turned into an improvement labels Dec 10, 2021
@DanailH DanailH changed the title [Datagrid] Direct filtering under column name [DataGrid] Custom filter panel Dec 10, 2021
@DanailH DanailH added support: Stack Overflow Please ask the community on Stack Overflow and removed support: question Community support but can be turned into an improvement labels Dec 10, 2021
@mui mui deleted a comment from github-actions bot Dec 10, 2021
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! support: Stack Overflow Please ask the community on Stack Overflow
Projects
None yet
Development

No branches or pull requests

2 participants