Question
1
Replies
27
Views
Siemens Technology and Services Private Ltd.
Posted: December 2, 2020
Last activity: December 2, 2020
Conditionally hide column in table layout.
Hi,
We have a requirement to conditionally hide some columns in a table layout based on User roles. I have added when rule ("Never") on the column header and column value still the column is visible but this time the column values are hidden. But my requirement is to hide the entire column.
I have referred the below post but it suggests to use Inline styling which comes with a warning.
Is there any other approach to hide the entire column conditionally?
Hi,
You can add inline styling for conditionally hiding table columns. This is absolutely fine.
Please read the warning. It suggests that you should not to write custom CSS styles in the inline styles but you are rather writing a logic which is okay and can be ignored in this case.
Thanks,
Atikant