This is a migrated thread and some comments may be shown as answers.

[Solved] Determine if a column is hidden (via Javascript)

1 Answer 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin
Top achievements
Rank 1
Kevin asked on 13 Feb 2012, 11:50 PM
Hi.

I would like to allow the user the change a grid the way they would like to see it and then save the settings.

I use the grid.columns to cycle through all of the columns to determine their order I keep their settings based on the member property for a given column.

The question is how can I determine if a given column is hidden or not?

I don't see a property for it in the column. 

Any suggestions would be welcome.  I'm sure there is a way to determine that.

Thanks,
Kevin.

1 Answer, 1 is accepted

Sort by
0
Wicky
Top achievements
Rank 1
answered on 14 Feb 2012, 03:11 AM
Hi,

Here is what I found:

if column.hidden is undefined or false, it's shown;
if column.hidden is true, it's hidden.

Hope this helps.

Regards
Wicky
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Answers by
Wicky
Top achievements
Rank 1
Share this question
or