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

Initially hide some columns #44

Closed
MB34 opened this issue Oct 30, 2014 · 4 comments
Closed

Initially hide some columns #44

MB34 opened this issue Oct 30, 2014 · 4 comments
Labels

Comments

@MB34
Copy link

MB34 commented Oct 30, 2014

We have data that has up to 20 columns, we want to hide some of them on initialization but have them available in the drop down. How do I do that?

@claar
Copy link

claar commented Nov 6, 2014

Add data-visible="false" to the <th>'s you want to initially hide. See Column Settings -> visible in the docs.

@rstaib
Copy link
Owner

rstaib commented Nov 12, 2014

@claar Thanks for anwsering the questing.

@rstaib rstaib closed this as completed Nov 12, 2014
@kthangabalu
Copy link

hi can somebody tell be how to data-visible="true" dynamically using javascript

@hjmf1954
Copy link

hjmf1954 commented May 21, 2017

I have exact the same question as Ktangabalu. In a responsive design environment it may be useful to hide more columns in a mobile portrait environment than in a desktop landscape. Since the only correct way to find that out is in the client, JavaScript is the only method to do that.
So the hide/unhide column feature is a nice-to-have option.
In pure JavaScript the hiding of the column(s) is an alternative by adding the id or adding a extra class to both the and the in the grid.
Or is an extra reload of the grid a better solution with the additions of the screen-settings?
Or are there better alternatives??

Do I need to create a new issue for this question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants