Wednesday, October 26, 2011

Re: CellTable - how to load just one page?

"Only if you know in advance the height of a rendered row. "

Hi Thomas,

I'm close to a solution to providing dynamic retrieval of data via
scrolling. The CellList example provided in the GWT Showcase does
not work for me because is doesn't let the user immediately scroll to
any portion of the list not already loaded. Hence you get a water
pump effect as you have to bring the scrollbar all the way to the
bottom in order to request more data.

Right now I am determing the scrollpanel height by multiplying two
constants: VISIBLE_ITEMS_IN_VIEW * ROW_HEIGHT
I determine ROW_HIGHT by testing with some data and inspecting the
value of cellTable.getRowElement(0).getClientHeight().

Do you know any way of determining the "height of a rendered row" at
runtime and before setting the height of the scrollpanel ?

thanks
David

--
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment