DataGrid rows appear only after sort when using SimplePanel

22 views
Skip to first unread message

Ronny Shapiro

unread,
May 28, 2012, 11:28:03 AM5/28/12
to Google Web Toolkit
Hello,

I have found a strange behavior when using a DataGrid with SimplePanel
and ListHandler.
The data is not shown until I click on one of the column headers to
sort the data.

I tried using VerticalPanel instead and the data is shown correctly
when the table is redrawn (no sort yet made).

Any ideas what may cause this ?

(The work around is easy but still strange it works that way ..)

Ronny

Thomas Broyer

unread,
May 31, 2012, 3:54:09 AM5/31/12
to google-we...@googlegroups.com
DataGrid is a RequiresResize widget; are you giving it an explicit size? (given that you're not putting it into a ProvidesResize widget)
See https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#Resize, and the “Using a LayoutPanel without RootLayoutPanel” recipe on the same page.
Reply all
Reply to author
Forward
0 new messages