CellTable/DataGrid wrapped by TabLayoutPanel (non active tab): Table not filled

Finally, the issue CellTable/DataGrid wrapped by TabLayoutPanel (non active tab): Table not filled seems to be fixed by 2.5 RC1. Just in case you are stuck with a previous version of GWT for now, try using the following workaround:

3 thoughts on “CellTable/DataGrid wrapped by TabLayoutPanel (non active tab): Table not filled”

  1. Hi, I tried this workaround. Somehow it is not working for me. Weird.
    Do you know why? or do you have another workaround?
    thanks

  2. Calling “onResize” just makes the cell table redraw, but not reload the data. For that purpose I had an interface

    public interface PagingView extends View {
    void reload();
    }

    and let the views implement something like:

    for (HasData display : getDataDisplays()) {
    display.setVisibleRangeAndClearData(display.getVisibleRange(), true);
    }

    That solved the problem with loading the data.

    Hope it helps!

  3. This solved my TabLayoutPanel loading problems (GWT 2.7). Thanks.

    // Forces TabLayoutPanel to reload when new tab is selected
    @UiHandler(“tabPanel”)
    void onSelection(SelectionEvent e) {
    Widget w = tabPanel.getWidget(e.getSelectedItem());
    if (w instanceof RequiresResize) {
    ((RequiresResize) w).onResize();
    }
    }

Leave a Reply

Your email address will not be published. Required fields are marked *