google-code-export / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

GridPanel does not support setContentPanelListener #108

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
GridPanel plantGridTab = new GridPanel(plantGrid.getGrid(), new
ContentPanelConfig() {
    {
        // always refresh when the tab is activated
        setContentPanelListener(new ContentPanelListenerAdapter() {
            public void onActivate(ContentPanel cp) {
                Model.getPlantStore().reload();
            }
        });
    }
});

When the tab is activated, the onActivate is not called.

Original issue reported on code.google.com by mathias....@gmail.com on 11 Sep 2007 at 10:42

GoogleCodeExporter commented 9 years ago
I've fixed the code, but in my tests of a GridPanel inside a NestedLayout, when 
the
application is initially loaded, I get the GridPanels activate event is invoked.
However subsequent changes to a different tab / resize doesn't result in the
deactivate / resize event being invoked. This is how Ext behaves and events are 
not
cascaded. See thread : http://extjs.com/forum/showthread.php?t=1475

Hope this is not something you run into. If this doesn't meet your need, please
explain your use case any maybe we can raise this issue up in the Ext forums 
again.

Original comment by sanjiv.j...@gmail.com on 14 Sep 2007 at 2:29