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] remove the quick filtering on a given column no more works #16733

Open
vadimka123 opened this issue Feb 25, 2025 · 2 comments · May be fixed by #16738
Open

[data grid] remove the quick filtering on a given column no more works #16733

vadimka123 opened this issue Feb 25, 2025 · 2 comments · May be fixed by #16738
Labels
bug 🐛 Something doesn't work 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

Comments

@vadimka123
Copy link

vadimka123 commented Feb 25, 2025

Steps to reproduce

https://mui.com/x/react-data-grid/filtering/quick-filter/

To remove the quick filtering on a given column set getApplyQuickFilterFn: undefined.

In the demo below, the column "Name" is not searchable with the quick filter, and 4 digits figures will be compared to the year of column "Created on."

Check this demo

Current behavior

quick filtering applied on all columns

Expected behavior

getApplyQuickFilterFn: undefined should prevent from quick filtering on relevant column

Context

Tested in 7.27.1 version

Your environment

No response

Search keywords: quick filtering, getApplyQuickFilterFn

Order ID 💳 (optional)

97768

@vadimka123 vadimka123 added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 25, 2025
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Feb 25, 2025
@vadimka123
Copy link
Author

Caused by this one #14446

@michelengelen
Copy link
Member

Hey @vadimka123 ... thanks for opening this issue here.
I can see that the docs are wrong in this case, so the actual thing to do would be to set the getApplyQuickFilterFn to null. In this case it won't get overwritten by the default in the base column definitions.

Could you adjust the PR - thanks for that BTW 🙏🏼 - with the suggestions I will give in a minute?

thanks!

@michelengelen michelengelen added feature: Filtering Related to the data grid Filtering feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 26, 2025
@github-project-automation github-project-automation bot moved this to 🆕 Needs refinement in MUI X Data Grid Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work 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
Projects
Status: 🆕 Needs refinement
Development

Successfully merging a pull request may close this issue.

2 participants