-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
To Hide a Column #917
Comments
hey @gmarathi-nisum-com -- you should be able to do this by passing |
@jpdriver Thankyou for the reply. I tried it. But it is taking space of hidden column in table. |
Hello, I am doing it by settings my own property for columns to for example |
@martinnov92 Thank you!! |
hello @martinnov92 . In your snippet, when you implement it is still occupying space for the hidden column right? |
You can have a column chooser whcih dynamically hides or shows the column when you check or uncheck the checkbox against the column name, just have a property like show(default true) or any property like visible and filtering the columns whose show or visible property has become false to be hidden else when checked they will be shown. Here is the working example |
Super High tech solution incoming!!!
const columnTemplate = [ |
Hey there! The link you provided is not working, am I able to hide a column on the fly without having to rerender the whole grid with your approach? Thanks a lot! |
This is a working demo of column choosing using checkboxes https://drive.google.com/file/d/13esqen5Df_Hv8qT9nZWhpOTG3XZaWUuy/view?usp=sharing Thanks to @martinnov92 Dhana Shekhar Tontanahal well kept secret no longer needed! |
Hey all,
so sorry I missed your communication and the above link not working because
, that repo got delete accidentally.
With same link put the code can you check please.
Regards,
Dhana
…On Mon, Mar 15, 2021 at 5:58 PM Jayanta Narayan Choudhuri < ***@***.***> wrote:
This is a working demo of column choosing using checkboxes
https://drive.google.com/file/d/13esqen5Df_Hv8qT9nZWhpOTG3XZaWUuy/view?usp=sharing
Thanks to @martinnov92 <https://github.com/martinnov92>
And my idea of using row selection in a devious way
Dhana Shekhar Tontanahal well kept secret no longer needed!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#917 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD56RJYNGBPCVGYYPO3CM3LTDX4OTANCNFSM4DZP3LLA>
.
|
Hi Dhana Your package.json has no trace of react-data-grid My code is 100% vanilla react-data-grid Regards |
Thanks ogg130 |
this.columns = [
{ key: 'Name', name: 'Name', filterable: true, sortable: true, resizable: true },
{ key: 'State', name: 'State', filterable: true, sortable: true, resizable: true },
{ key: 'Country', name: 'Country', filterable: true, sortable: true, resizable: true },
{ key: 'Id', name: 'Id', filterable: true, sortable: true, resizable: true }
];
My column header are above.
Is there any property to column header object where we can hide them on page.
The text was updated successfully, but these errors were encountered: