LookAtMeNow
LookAtMeNow

Reputation: 261

Extjs 4.1 - How to listen window close in grid

I have a grid inside a window. I want my grid listen when the window close I will do reload my store.
Any idea? How to do that thanks so much.

Upvotes: 0

Views: 1119

Answers (1)

bakamike
bakamike

Reputation: 1024

You can attach a listener to the Window for the close event.

...
listeners:{
    close:function(this) {
        this.down('grid').getStore().load();
    }
    scope:this
}

http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.window.Window-cfg-listeners

Upvotes: 2

Related Questions