Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7836013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:55:03+00:00 2026-06-02T13:55:03+00:00

The GWT showcase, as well as many examples I found, there is always a

  • 0

The GWT showcase, as well as many examples I found, there is always a very simple usage of the DataGrid:

  1. You define DataGrid element in your UIBinder, and you set it’s field to be provided.
  2. In the view constructor you initialize the grid – define columns and add data
  3. UI binder is generated
  4. Everything it presented as expected..

But the common case is not so static: you usually set up the grid but don’t have the data, which may be provided only after the user is doing something (clicking a button, etc).

It took me quite a lot of time to present the DataGrid in my complex UI layout 😐
For doing that, the grid is now hosted in SimpleLayoutPanel which has 100% width and height, and this SimpleLayoutPanel is inside some docking panel.
But for reason I don’t understand – the grid is displayed beyond the docking panel size, so I can never see the bottom end of its scroll bar.

This is my UI binder (removed some stuff for clarity):

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
    xmlns:g="urn:import:com.google.gwt.user.client.ui">

<ui:style>

.sidePadding {
    padding-left: 8px;
        padding-right: 8px;
 }

    .expanded {
    width: 100%;
    height: 100%;
}


<g:DockLayoutPanel unit="PX" styleName="{style.expanded}">
    <g:north size="45">
        ...
    </g:north>
    <g:center>
    </g:center>
        ...
    <g:east size="190">
        <g:FlowPanel styleName="{style.sidePadding}">
            <g:FlowPanel>
                <g:Label>SOME TOOLBAR</g:Label>
            </g:FlowPanel>
            <g:HTMLPanel>
                <g:Label>SOME PANEL PANEL </g:Label>
            </g:HTMLPanel>
            <g:FlowPanel ui:field="eastContent">
                <g:Label>SOME FLOW PANEL</g:Label>
            </g:FlowPanel>
            <g:SimpleLayoutPanel ui:field="imagesGrid" addStyleNames="{style.expanded}"/>
        </g:FlowPanel>
    </g:east>
</g:DockLayoutPanel>

</ui:UiBinder>

As it turns out – the east panel gets a height of 650px, which is the correct value, but also the DataGrid inside the SimpleLayoutPanel gets the same height! and because there are some labels etc. before it – it overflow the size of the east panel..

Any help???

UPDATE:
It seems that if I remove everything from the east-panel and leave only the SimpleLayoutPanel of the DataGrid – it works find!
But I do need to add all those extra labels above the grid – and I can’t find a solution.
??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T13:55:05+00:00Added an answer on June 2, 2026 at 1:55 pm

    See https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels

    Layout panels (RequiresResize widgets) have to be nested into other layout panels (ProvidesResize widgets) all the way up to either the RootLayoutPanel, a ResizePanel or a layout panel with an explicit and fixed size (i.e. not fuild, e.g. not given in percentage of the parent panel, but rather in pixels).

    Here, your FlowPanel between the DockLayoutPanel and SimpleLayoutPanel breaks the hierarchy.

    You might want to trade the FlowPanel with a HeaderPanel, putting all the FlowPanels in the header (in a container FlowPanel) and your SimpleLayoutPanel (or your Datagrid) as the content.
    despite not implementing ProvidesResize, HeaderPanel respects this contract but for its content child only (that’s the crux of it: size the content child depending on the HeaderPanel‘s size and the intrinsic size of the header and footer)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple GWT application which collects some data and provides a
I am using MenuBar from GWT showcase. I want to add text in the
I´ve just started learning GWT and I´m trying to implement http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload and but failing
In GWT javadoc, we are advised If you only need a simple label (text,
In GWT, is there a way to find out the user's physical location (country,
I'm trying to create a RichTextArea (following the GWT Showcase : link ) When
Here is GWT PopupPanel ShowCase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwBasicPopup The Panel got hide when the user click
GWT's serializer has limited java.io.Serializable support, but for security reasons there is a whitelist
GWT Activities/Places/MVP concepts were discussed quite a lot here, but I haven't found a
I want a webapp skeleton similar to GWT Showcase example. I mean: an entrypoint

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.