Hi, Is it possible to set a columnwidth of the Table in vaddin in percentage.If is it possible tell me how to do it with example code snippet.Thanks in advance.
+1
A:
Yes. Use Table.setColumnExpandRatio(columnId, ratio) for that.
Let's say that you got the properties "foo", "bar" and "baz" in your table. If you do this:
table.setColumnExpandRatio("foo",1);
table.setColumnExpandRatio("bar",2);
table.setColumnExpandRatio("baz",1);
you'll get 25% to foo and baz and 50% to bar
Jens Jansson
2010-06-01 13:30:28