I have a table with strings in each cell.
These strings would need, say, 50px column width to be displayed fully.
table_1.setColumnWidth("Header", 20);
This doesnt work though. In fact, any value under the ‘minimum’ of 50 will not take effect.
Any ideas on how to solve this?
(The idea is, when the table is filled with data and rendered, I don’t want the horizontal scrollbar to appear - I’d much rather have all colums squeezed such that they all fit in the 200px wide table)
jup, same here. I don’t want the scroll bar on the bottom.
All columns need to fit the contents and the less important columns need to shrink if it doesn’t fit on the page.
B"H
Hello,
I have same problem with Grid. not Table.
UX expert guide me to never allow the horizental scroll appear and instead squize the columns if needed.
I c no way excpet hooking some event and recaclulate all columns width myself.
Ideas?
This is more or less same issue when user squeeze himself the columns and get empty space at the right side of the grid.
For general users might looks like a bug. so I have to implemented to both cases.
attached screenshot from Grid example: https://vaadin.com/grid
same bug occurs while change content size, e.g. put Grid inside split layout. play with the split and Grid acts abnormaly.
My concern is less the implementation but the performance payment for doing such tricks. as sometimes I have 4-5 Grids at same page.