This topic is locked

Determine show/hide state of column

10/7/2022 12:47:34 PM
ASPRunner.NET General questions
T
Tim author

Hi all,

I have a list page that allows users to show/hide the columns. One of these columns has a button in the cell on each row. When the column is hidden the column header and the data disappears but the button remains. I'd like to hide the button if the column is hidden. Is there a way for me to tell the show/hide state of a particular column? And I believe I'd need to do this in Java Onload so I can show/hide the button without having to refresh the whole page.

Thanks,
Tim

Sergey Kornilov admin 10/7/2022

I guess you can use Javascript to check if the certain column is displayed. Look for something like column header with a certain attribute.

This can be also a bug if the button remains visible even after the column is hidden. I would suggest contacting support directly in this regard.