Hi, See http://stackoverflow.com/questions/7874168/solved-gwt-datagrid-automatic-height .
You need in DOM tree, in some point, a fixed region that is the parent of the DataGrid, or attach to html body element the RootLayoutPanel. I had a problem recently, check T.Broyer suggestion at this thread<https://groups.google.com/forum/#!msg/google-web-toolkit/qx0TlClTDdc/cNX6AM2JCyMJ> . Juan 2011/12/1 koma <[email protected]> > Hi, > > I have a TabLayoutPanel and in the second tab, I would like to display a > DataGrid (the scrollable, fixed header version of CellTable). I have been > reading here a bit about the requirement to put it in a LayoutPanel so I > tried (among other things) this : > > <g:HTMLPanel ui:field="body" addStyleNames="{style.details}"> > <g:TabLayoutPanel barUnit='PX' barHeight='30' > addStyleNames="{style.tablayoutpanel}"> > <g:tab> > <g:header>actions</g:header> > <g:HTMLPanel> > <g:Anchor href="#" ui:field="newTicketAnchor">actions > </g:Anchor> > </g:HTMLPanel> > </g:tab> > <g:tab> > <g:header>history</g:header> > <g:ResizeLayoutPanel width="100%" height="156px"> > <c:DataGrid stylePrimaryName='{style.table}' ui:field='table' > height="156px" /> > </g:ResizeLayoutPanel> > </g:tab> > </g:TabLayoutPanel> > </g:HTMLPanel> > > Unfortunately, only the header is showing, no data. > When I replace DataGrid with CellTable in both the uibinder xml and my > code, the table displays without problems. > > Anybody ? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/knrykfdWM-UJ. > 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. > -- 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.
