My CellTable is too narrow at first, what could I be doing wrong?

26 views
Skip to first unread message

Pete Yorke

unread,
Oct 1, 2012, 11:49:58 AM10/1/12
to google-we...@googlegroups.com
I have a Composite widget that contains a ListBox, and then a CellTable inside a ScrollPanel.

When I first load up the CellTable with data (and set the row count), the columns get scrunched because the CellTable does not use the available horizontal space. But then when I click the down arrow in the ListBox, the CellTable expands to take the amount of space it needs.

I have tried everything I can think of to make it use the space correctly the first time, but have not been successful. Does anyone have any ideas?

Andrei

unread,
Oct 2, 2012, 3:49:00 PM10/2/12
to google-we...@googlegroups.com
It's hard to respond without seeing the code. Where did you set the width of the CellTable? How did you set column width? Which handlers did you attach to your ListBox? Do you call DataProvider and when?

You will get a faster response if you post this problem, with the code, on StackOverflow.

On another note, consider using a DataGrid instead of a CellTable wrapped in a ScrollPanel.


Reply all
Reply to author
Forward
0 new messages