Re: GWT 2.1 CellTable - set page size to fill up a containing layout
Hmmm... well, I guess what I need is to give container a time to
render itself, and after that insert table with calculated page size
into container. But anyway, this is what framework have to do...
It seems that I just get used to real frameworks like SmartGWT etc.
Now I checked if GWT 2.1 is suitable to be used "as is", but it looks
like a joke - a lot of buzzz about the right architecture, and lack of
simple things almost everyone really needs. Google has working paged
list of mails in GMail, so I guess it is possible... :)
Thank you for the answer!
On 24 ноя, 15:40, Paul Stockley <pstockl...@gmail.com> wrote:
> You will need to do the rowsize calculation initially from a deferred
> command to
> give the table the time to initially render. Calculating the actual
> number of
> rows isnt easy and infact is impossible is there is any kind of text
> wrapping
> happening within cells.
>
> On Nov 23, 8:48 am, Valeri <valeri.anto...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Well, when we creating CellTable, one parameter is pageSize. I guess,
> > the most common scenario for CellTable is to have enough rows to fill
> > the entire container - not more, not less, and to change page size on
> > resizing (in a SplitLayoutPanel, for example). Or, better, to share
> > layout height with Pager
>
> > It seems, that I have to calculate the number of rows by myself (not
> > very cool). And for me the right moment to get widget height is not
> > clear (really, I always retrieve 0 from getBodyHeight())
>
> > Can anyone say, what is "recommended" way to calculate the right
> > number of rows? Table with fixed page size is just ugly
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home