Re: FlexTables - store invisible database key in row?

2010-07-09 Thread Paul Robinson
(BTW: is there a better way to convert an int to String than +idx?) Magnus Integer.toString(idx) -- 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-tool...@googlegroups.com. To

Re: FlexTables - store invisible database key in row?

2010-07-09 Thread Thad
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

Re: FlexTables - store invisible database key in row?

2010-07-08 Thread Magnus
Hm, this doesn't work for me. All the cells are shifted in their horizontal positions... With your method the table does not behave as if the column width were 0px. I wonder how to deal with this stuff... Magnus On Jul 7, 7:47 pm, Thad thad.humphr...@gmail.com wrote: I do this in a number of

Re: FlexTables - store invisible database key in row?

2010-07-08 Thread Thad
Odd. I use this trick in number of different places, and had done so since GWT 1.3 (in fact, I learned the style trick from this list and, in part, from the old Mail sample). It's been tested with Firefox, IE, and Safari. When my cells have been shifted it's because I did not count or order my

Re: FlexTables - store invisible database key in row?

2010-07-08 Thread Thad
Look at this simplified example. If you run this, you should see a table with no column or data D. public class HiddenColumnTest implements EntryPoint { public void onModuleLoad() { FlexTable table = new FlexTable(); HTMLTable.CellFormatter cellFormatter =

Re: FlexTables - store invisible database key in row?

2010-07-08 Thread Magnus
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:

FlexTables - store invisible database key in row?

2010-07-07 Thread Magnus
Hi, I would like to use a FlexTable as a list of users and I need to attach a user id to each row somehow, in order to identify the user when a row is selected. I tried to use a column of width 0px, but this column is visible... How would you do that? Thanks Magnus -- You received this

Re: FlexTables - store invisible database key in row?

2010-07-07 Thread Subhrajyoti Moitra
one way might be to use a ListUser userList private variable in the widget.. the state of the flextable is same as the state of the userList. when a row is selected.. depending on what event selects the row (mouse over, mouseclick..).. update a private User currentUser object. public class