[data grid] What is the best way to modify the toolbar menus ? #13059
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/
The problem in depth
Hello,
I are attempting to modify how the filters menu opens, instead of opening it in the default dropdown we are attempting to open them in a drawer component. The issue we are running into is that each time we apply a filter in the drawer the mui data grid renders and closes the drawer.
Here is a snippet of our code
const [filters, setFilters] = useState([]);
const [isDrawerOpen, setIsDrawerOpen] = useState(false);
Here is how we are using the custom toolbar.
Here is how we have customized it.
Do you have a suggestion on how we can accomplish modifying data grid filters within a drawer component with success ?
Here is a visualization of us opening the filters in the drawer component, where whenever we modify a filter, as soon as we do the grid re-renders.
Your environment
`npx @mui/envinfo`
Search keywords: filters, render
Order ID: 89853
The text was updated successfully, but these errors were encountered: