PDA

View Full Version : Execute Code after modal window close



chakra1234
13 May 2013, 1:33 PM
Hi,
I have a viewport that has a toolbar button. On click of the button, I am opening a modal window.
using below code

btnChangeFactoryClick: function(button, e, eOpts) {
var changeFac=Ext.create('TestApp.view.ChangeFactory',{modal:true});
changeFac.show();
}

When I close the modal window, I wanted to execute some code. How to achieve that?
I wanted to return values from modal window and assign to controls in viewport.

Thanks

mitchellsimoens
15 May 2013, 12:38 PM
So you need to get the values before it gets destroyed and you can use the beforeclose event on the window.