Sencha Premium Member
Unanswered: Ext.Window and corresponding controller
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.
You can listen for the 'afterrender' event on the Window. Then set all the field values in that event handler.
Tags for this Thread