View Full Version : Ext.Window and corresponding controller

1 Aug 2012, 9:21 AM
Hello Everyone,
I have an Ext.Window popup which is going to need a controller of some sort to set the data on the pertinent fields. Using the controller paradigm, I'm worried I will run into the issue whereby the controller tries to set the data on the view but the view is not initialized in which case we have to somehow dispatch and event from the view to let the controller know it is ready.

TL;DR What is the best practice to get a controller to set the data on a view when the view is a popup and may not be readdy or exists.

1 Aug 2012, 12:18 PM
You can listen for the 'afterrender' event on the Window. Then set all the field values in that event handler.