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] Save and restore filtermodels #13430

Open
pankajindevops opened this issue Jun 9, 2024 · 3 comments
Open

[data grid] Save and restore filtermodels #13430

pankajindevops opened this issue Jun 9, 2024 · 3 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! customization: extend Logic customizability docs Improvements or additions to the documentation feature: Filtering Related to the data grid Filtering feature recipe support: commercial Support request from paid users support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@pankajindevops
Copy link

pankajindevops commented Jun 9, 2024

The problem in depth

Hi, I would like to Create a Filter in MUI Pro Data Grid and Save it giving it a name. And reuse a Filter without having to create the same filter again and again. I searched everywhere but couldn't find it therefore wondering if this feature is available ?

Your environment

System:
OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
Binaries:
Node: 21.5.0 - /usr/local/bin/node
npm: 10.2.4 - /usr/local/bin/npm
pnpm: Not Found
Browsers:
Chrome: 125.0.6422.141
npmPackages:
@emotion/react: ^11.11.3 => 11.11.3
@emotion/styled: ^11.11.0 => 11.11.0
@mui/base: 5.0.0-beta.40
@mui/core-downloads-tracker: 5.15.17
@mui/icons-material: ^5.15.3 => 5.15.3
@mui/material: ^5.15.3 => 5.15.17
@mui/private-theming: 5.15.14
@mui/styled-engine: 5.15.14
@mui/system: 5.15.15
@mui/types: 7.2.14
@mui/utils: 5.15.14
@mui/x-data-grid: ^6.18.7 => 6.18.7
@mui/x-data-grid-pro: ^6.18.7 => 6.18.7
@mui/x-license-pro: ^6.10.2 => 6.10.2
@mui/x-tree-view: ^7.4.0 => 7.4.0
@types/react: ^18 => 18.2.47
react: ^18 => 18.2.0
react-dom: ^18 => 18.2.0
typescript: ^5 => 5.3.3

Search keywords: MUI Pro DataGrid, Filter, Save Filter
Order ID: 81990

@pankajindevops pankajindevops 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 9, 2024
@michelengelen michelengelen changed the title Hi, I have a requirement to save Filters in MUI Pro Data Grid and Reuse them later. Is this feature available ? [data grid] Save and restore filtermodels Jun 10, 2024
@michelengelen michelengelen added status: waiting for author Issue with insufficient information feature: Filtering Related to the data grid Filtering feature customization: extend Logic customizability support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/ and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jun 10, 2024
@michelengelen
Copy link
Member

Hey @pankajindevops
Thanks for raising an issue.
This is currently not a built in feature but certainly possible with some customizations.
The specific features you would need to use are controlled filtering and some way to save and restore a filtermodel (e.g. by customizing the filter panel content)

@cherniavskii we could maybe add a recipe for this. WDYT?

Copy link

The issue has been inactive for 7 days and has been automatically closed.

@cherniavskii
Copy link
Member

@michelengelen Sure, why not?
The demo can be similar to this demo: https://mui.com/x/react-data-grid/state/#restore-the-state-with-apiref

@cherniavskii cherniavskii added docs Improvements or additions to the documentation recipe and removed status: waiting for author Issue with insufficient information labels Jun 17, 2024
@cherniavskii cherniavskii reopened this Jun 17, 2024
@oliviertassinari oliviertassinari added the component: data grid This is the name of the generic UI component, not the React module! label Jul 24, 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 docs Improvements or additions to the documentation feature: Filtering Related to the data grid Filtering feature recipe support: commercial Support request from paid users support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

No branches or pull requests

4 participants