You may have a point on table width. Elsewhere I call
table.setWidth("100%"), but my understanding of the layering is that
is bound by higher blocks.  However for columns, if the data I'm
reading has a width defined for a column, I call
columnFormatter.setWidth(col, ""+width+"px").  My tables have up to 5
empty columns for various application information.

You're technique is a clever solution, and (I think) should work
across browsers.  Given the vagaries of CSS implementation, over time
it might be more reliable than mine. :)

On Jul 8, 10:47 pm, Magnus <[email protected]> wrote:
> Hi Thad,
>
> maybe it's because you does not set the width of your table. I do so,
> and I also set the widths of my columns.
>
> However, I found a cool solution that fits perfectly for me and that
> does not use an extra column for the index at all! I simply store the
> index as an attribute in the DOM:
>
> tbl.getFlexCellFormatter ().getElement (y,0).setAttribute
> ("idx",""+idx);
> // y is the current row, idx is the database index
>
> (BTW: is there a better way to convert an int to String than ""+idx?)
>
> Magnus

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

Reply via email to