Page 1 of 1

Dynamically Hiding and Resizing Table Columns

Posted: Thu Jan 30, 2025 11:34 am
by mono
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.

Re: Dynamically Hiding and Resizing Table Columns

Posted: Fri Jan 31, 2025 5:07 pm
by Lech Kulikowski
Hello,

Please check the sample report.

Thank you.

Re: Dynamically Hiding and Resizing Table Columns

Posted: Mon Feb 03, 2025 7:19 am
by mono
Thanks for that sample. To that part (just hiding) I figured it out myself. But "I need columns A and C to spread and take the area of column B, like it never existed" part I can't figure out.
Can you please provide sample were columns dynamically change width to take space missing by hidden column.

It could be just one column that spreads, but i need table to take whole page width, even when some columns are disabled.

Re: Dynamically Hiding and Resizing Table Columns

Posted: Mon Feb 03, 2025 8:44 pm
by Lech Kulikowski
Hello,

Please check the sample report.

Thank you.