1. #1
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    162
    Answers
    7
    Vote Rating
    2
    UbuntuPenguin is on a distinguished road

      0  

    Default Unanswered: Ext.Window and corresponding controller

    Unanswered: Ext.Window and corresponding controller


    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.

  2. #2
    Sencha User
    Join Date
    May 2010
    Location
    Las Vegas, NV
    Posts
    133
    Answers
    7
    Vote Rating
    2
    billtricarico is on a distinguished road

      0  

    Default


    You can listen for the 'afterrender' event on the Window. Then set all the field values in that event handler.

Thread Participants: 1

Tags for this Thread