Need Scroll bars in ScrollPanel/cell table

1,110 views
Skip to first unread message

Darpan Kamboj

unread,
Jun 9, 2011, 9:14:00 AM6/9/11
to Google Web Toolkit, kamboj...@gmail.com

I need to scroll bars to cell table but as I gone through some the
posts this feature is not available currently.
could anyone help me how to use ScrollPanel with cell table and how to
set the dimentions of the panel to see the scrool bar. As I want to
show the 5000 rows in a cell table.

Thanks
Darpan


John LaBanca

unread,
Jun 9, 2011, 10:34:12 AM6/9/11
to google-we...@googlegroups.com, kamboj...@gmail.com
GWT 2.4 will introduce DataGrid, which is a CellTable with a scrollable content area.  If you build GWT from trunk, you can try it out.

Thanks,
John LaBanca
jlab...@google.com




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


redjhawk

unread,
Jun 10, 2011, 3:28:44 AM6/10/11
to Google Web Toolkit
Summarizing, it will be similar to:

scrollPanel.setWidth(Window.getClientWidth().+"px");
grid.setWidth((widthOfEachCell*numOfCells+"px");

in the scroll panel, you can set up whatever size you want. Here, I
put the width of the entire window.

You have to set up the grid: separation between cells, etc

redjhawk

unread,
Jun 10, 2011, 3:31:39 AM6/10/11
to Google Web Toolkit
I forgot to tell you. Scroll bar will be only showed if the size of
the widget inside the scroll panel is bigger than the scroll panel.

Hope I explain it ok:)


On Jun 10, 9:28 am, redjhawk <jorges...@gmail.com> wrote:
> Summarizing, it will be similar to:
>
> scrollPanel.setWidth(Window.getClientWidth().+"px");
> grid.setWidth((widthOfEachCell*numOfCells+"px");
>
> in thescrollpanel, you can set up whatever size you want. Here, I
Reply all
Reply to author
Forward
0 new messages