Auto Height GWT DataGrid

I am trying to insert a gatt datagrid into my application. If I set a static height (500 pixels), everything works fine. But I want to make autoGrid automatically adjust the screen size. With a height of 100%, I get a blank screen. I also tried setting the datagrid to resizeLayoutPanel with the same results.

any advice?

+8
gwt datagrid
source share
2 answers

All RequiresResize widgets must be explicitly sized or added to ProvidesResize widgets (prior to the RootLayoutPanel or ProvidesResize widget with an explicit size, the only exception is the ResizeLayoutPanel , which doesn't implement ProvidesResize because it cannot execute the contract for its header and footer widgets, but it definitely sets it apart from the central widget).

So the question is: where did you add the DataGrid and / or ResizeLayoutPanel ?

+19
source share

Thomas Breuer is right. However, I found interest in the DataGrid (this does not happen in CellTable). If you use a DeckPanel, and if you create a DataGrid in the hidden panel of this DeckPanel, the DataGrid data will not be visible if you show the DataGrid panel. I found only one workaround: call addDataDisplay of your DataProvider "after" panel was made visible.

+3
source share

All Articles