-
-
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
[Data Grid] Make SUBMIT_FILTER_STROKE_TIME
editable via props
#9157
Comments
You can customize the filter operators to change the Here's a demo where stroke time is being used: https://mui.com/x/react-data-grid/filtering/#multiple-values-operator.
Can you explain more why you need this, the filters are applied automatically after the stroke time has passed, you can customize the |
Of course creating a custom However, I feel that enabling this as a prop would be a better solution - like the
As I'm using the server-side filtering, this kind of |
I think we should expose it. @MBilalShafi do you have any suggestion under which name we could expose it? Should it go on the root props or elsewhere? |
@romgrk Yeah, it'll be less painful if it's readily customizable without customizing filter operators. Probably, const debounceMs = rootProps.slotProps.filterPanel.filterDebounceMs ?? DEFAULT_FILTER_STROKE_TIME And we'll also have to exclude this prop somehow when we pass down the
What do you think? |
Is that setting only related to the filter panel? Could we make it a prop of the filter panel so we don't have to worry about excluding? |
Yeah, we can make it a part of mui-x/packages/grid/x-data-grid/src/components/panel/filterPanel/GridFilterForm.tsx Lines 538 to 545 in 13658f0
So, the possible options seem to be, either we stop destructuring the |
Sounds good, let's go with |
Duplicates
Latest version
Summary 💡
I would love to be able to control the debounce time on applied filters inside the filterPanel. Currently it's hardcoded here.
Alternatively, please allow users to be able to apply filters manually - via some kind of
Apply filters
button.Examples 🌈
No response
Motivation 🔦
This would allow me to optimize the Data Grid with server-side filtering and reduce the amount of unnecessary back-end requests.
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: