table widget wanted

23 views
Skip to first unread message

Magnus

unread,
Oct 24, 2011, 5:03:52 AM10/24/11
to google-we...@googlegroups.com
Hi,

I just played around with CellTable, and I found out that it uses paging by default.

What, if I do not want paging, so that all data is displayed at once ( with scroll bars)? Is CellTable the wrong widget or can it be configured not to use paging?

Thanks
Magnus

Thomas Broyer

unread,
Oct 24, 2011, 8:12:43 AM10/24/11
to google-we...@googlegroups.com
It's as easy as setPageStart(0); setPageSize(totalNumberOfItems); (where totalNumberOfItems is actually the same value you'd pass to setRowCount).

E.g. given a List of items to be displayed:
 table.setPageStart(0);
 table.setPageSize(list.size());
 table.setRowData(list); // which is equivalent to table.setRowCount(list.size()); table.setRowData(0, list);

Magnus

unread,
Oct 26, 2011, 1:13:33 AM10/26/11
to google-we...@googlegroups.com
Hi,

thanks! This works!

Magnus
Reply all
Reply to author
Forward
0 new messages