Dynamically Hiding and Resizing Table Columns
Posted: Thu Jan 30, 2025 11:34 am
Hello,
I have a question about hiding table columns.
I use javascript engine to display report.
So i have dynamic result set, which depending on user request can return or not return some columns. I know which columns I need, and I can pass that info through data.
In this example, I created property columns with list of columns that should be displayed, but if there is a better way to do this, I am not bound to this approach.
So in this case, I have data with columns A and C, and I need to dynamically hide column B and I need columns A and C to spread and take the area of column B, like it never existed. How can I achieve this? In some other cases, columns A or C can be missing.
If there is some whole different approach, I am open to all solutions.
I have a question about hiding table columns.
I use javascript engine to display report.
So i have dynamic result set, which depending on user request can return or not return some columns. I know which columns I need, and I can pass that info through data.
In this example, I created property columns with list of columns that should be displayed, but if there is a better way to do this, I am not bound to this approach.
So in this case, I have data with columns A and C, and I need to dynamically hide column B and I need columns A and C to spread and take the area of column B, like it never existed. How can I achieve this? In some other cases, columns A or C can be missing.
If there is some whole different approach, I am open to all solutions.