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] GridToolBarColumnsButton #13683

Closed
tteris opened this issue Jul 1, 2024 · 2 comments
Closed

[data grid] GridToolBarColumnsButton #13683

tteris opened this issue Jul 1, 2024 · 2 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information support: commercial Support request from paid users

Comments

@tteris
Copy link

tteris commented Jul 1, 2024

The problem in depth

Hi so what i want to do is to to have a system that saves the users Columns prefrences ,
what i have done is to have a save button on the GridToolbarContainer that with the use of apiRef and the getVisibleColumns function i get the users prefrences .

Since this is not a build in functionallity what i did is i get the visible columns and save them on my db and on load i replace the initial columns with the saved ones .

The problem is that i lose the other columns from the GridToolbarColumnsButton if the user want to recall them .
I tried to use the Visibility model that provided from you but i had no luck

can you give me an example of this with ( i.e. how to custom add all the columns on the fillter button bacuase i cannot find documentation on this )

Your environment

No response

Search keywords: data grid
Order ID: 91159

@tteris tteris added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Jul 1, 2024
@KenanYusuf KenanYusuf added the component: data grid This is the name of the generic UI component, not the React module! label Jul 1, 2024
@noraleonte noraleonte changed the title GridToolBarColumnsButton [data grid] GridToolBarColumnsButton Jul 1, 2024
@romgrk
Copy link
Contributor

romgrk commented Jul 2, 2024

I'm not sure I understand your request, would it be possible to provide a bug reproduction case? You can fork any demo from the docs or paste your own code in our template.

From what I understand, you're trying to save not only the visible columns but all the columns? You should already have access to all the columns as you need to provide them to the datagrid, but I might be misunderstanding the issue.

@romgrk romgrk added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 2, 2024
Copy link

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

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! status: waiting for author Issue with insufficient information support: commercial Support request from paid users
Projects
None yet
Development

No branches or pull requests

3 participants