Table columns hide with radio button but visible column resizes errantly

Avatar

Avatar
Validate 1
Level 1
originalien
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
originalien
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
originalien
Level 1

07-03-2019

Good afternoon, my good people.

Working on a dynamic form. I have a three column table. Column A is .7", column B is 1.2", and column C is 6.1".

I have a radio button that will cause the first two columns to hide (which seemed to be way more difficult than it should've been - but I chalk that up to poor javascripting).

When I launch the button column A & B do indeed hide. But..  column C (typically 6.1" wide) resizes itself to .7" (the size of column A).

Some words of wisdom, please.

And, as an aside, my header row now only repeats on one page. I am trying to troubleshoot this, as we speak.

Thanks, in advance, for your attention.

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

08-03-2019

Hi there,

Hiding columns can get a little tricky due to how data is stored within a table regarding columns...

The reason why your column automatically resize to 0.7" is because of the order of columns and the order of widths per column.

If you have a look at your table property columnWidths within the XML, you can see how the columns are split with space between each other. Now because you have hidden column 1 and column 2, the first column visible remains 0.7".. so you would have to handle this part as well.

When removing the columns you can simply change the behaviour using the following statement:

I hope this will help.

Avatar

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
MinusZero
Level 4

07-03-2019

Not sure how you even hid columns, so well done on that.

What would happen if you set a minimum width of 6.1" using minW in the initialisation event of column C? Does it still resize?

Or changed it after clicking using:

Reference_Syntax.w = "6.1in";