SIDEBAR
»
S
I
D
E
B
A
R
«
CellTable/DataGrid wrapped by TabLayoutPanel (non active tab): Table not filled
July 7th, 2012 by P.G.Taboada

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 Responses  
  • joey writes:
    July 8th, 201206:01at

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

  • P.G.Taboada writes:
    July 8th, 201212:29at

    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!

  • Justin writes:
    July 30th, 201518:26at

    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

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »  Style:Ahren Ahimsa
Bitnami