Take a look at

http://www.wicketframework.org/wicket-extensions/apidocs/wicket/extensions/markup/html/tree/table/ColumnLocation.html

Specifying fixed size column should be no harder than adding them as LEFT 
or RIGHT columns instead of MIDDLE Column. MIDDLE column cannot have a 
fixed width.

You should, however, be aware of a JavaScript i TreeTable that does 
resizing, see method init() in TreeTable:

// Attach the javascript that resizes the header according to the body
// This is necessary to support fixed position header. The header does
// not
// scroll together with body. The body contains vertical scrollbar. The
// header width must be same as body content width, so that the columns
// are properly aligned.

Maybe you need to remove this, or at least modify the behavior...

Or, you could always do as I did in my example - specify the width of the 
treetable greater than the size of the enclosing div (see earlier 
examples).



>Hi,

>I am new to the Wicket and am trying out the TreeTable example. I am 
facing
>a more fundmental issue. I am unable to give a fixed width to the middle
>columns. I can only specify the Unit as Proportional which is dividing 
the
>columns proportionally within the available space. Because of this I 
don't
>even see where horizontal scrollbar can be used with the table. The total
>width of the table seems to remain same no matter how many coloumns I 
add.
>Is there a way to change this behaviour so that I can specify fixed 
widths
>to all the columns?

regards,
Kamesh

Reply via email to