Reputation: 261
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
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