Tableview not resizing in Servoy 5

Hi all,

I have a tableview which is shown either wide (the whole way across the screen) or narrow (about 300 pixels wide). In Servoy 3.5, a script resizing the tab-panel in which I had placed the tableview would also cause the columns the tableview to resize to make them fit the narrower view. The tableview has scrollbars set to vertical:when needed and horizontal:never.

In Servoy 5.1.4, the columns simply stay the same width, chopping off anything beyond 300 pixels.
How do I get around this issue?
How do I set the column widths programatically?

Christian

Still having this problem. The users are complaining they can’t resize the columns… :-(

I hope I understand right because you can set the anchors property of the columns to ‘TOP,RIGHT,LEFT’! This is fitting my columns in a table view list to the window size.

Hope it helps.

Hi Thomas,

I had anchored the columns in the table view. I tried taking some of the anchoring away and I can now move some of the columns… I can swap them around, but not actually resize them…

In my solution I can only resize ‘LEFT,RIGHT’ anchored columns. Do you have checked the anchor property column by column (element by element)?

Hi Thomas,

Checking LEFT and RIGHT anchor on each element restores the behaviour my users are expecting.
Thank you for your help!

By the way, is this documented anywhere?

C.

swingman:
Hi Thomas,

Checking LEFT and RIGHT anchor on each element restores the behaviour my users are expecting.
Thank you for your help!

By the way, is this documented anywhere?

C.

We’ll add this info in the wiki.