I'm using a ScrollTable to allow a user to select an item to edit.
The ScrollTable displays name and description columns which the user
can sort by clicking on the column's header.  The sorting presented a
problem because I needed to relate the row the user selected back to
an object in an ArrayList.  Once a user sorts the column, the rows in
the ScrollTable's data table no longer match the index of the obect in
the ArrayList used to populate the table.  I resolved my problem by
adding an index column to the ScollTable which I made invisible by
setting a "display:none" style attribute on every cell in the column.
This works OK, but I am wondering if there is a better solution.  It
seems to me that this would be a fairly common ScrollTable issue.

Ed

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to