Results 1 to 2 of 2

Thread: Recommendation for creating a child window

  1. #1
    Sencha Premium Member
    Join Date
    Jan 2010
    Vancouver, Canada
    Vote Rating

    Default Recommendation for creating a child window

    I have a form that needs to pop up a window with some data. If I want to re-use the same window over and over for any record (instead of recreating and destroying the window upon its closing action), what is the recommended way to create and reference the window?

    Here are some options:
    • create an override for the form and create the window object in the constructor.
    • use processConfig and create the object there
    • implement an event handler (afterRender?) and create the object there

    The code to create the window would be:

      this.myWindow = Ext.create('MyApp.view.MyWindow');
    where this is the view object.


    Update: another method is illustrated in this sample: where a popup dialog is owned by the view and it shares the same view controller as the parent view.

  2. #2
    Ext Support Team
    Join Date
    Nov 2017
    Vote Rating


    The best way will be as displayed in that example. Adding the dialog to the parent view.

Similar Threads

  1. creating child panels in container overwrites html below
    By kimballjohnson in forum Ext: Q&A
    Replies: 1
    Last Post: 11 Mar 2013, 11:56 PM
  2. Problem deleting and again creating child panel in CardLayout
    By Reema Seksaria in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 12 May 2011, 2:39 AM
  3. [OPEN] [FIXED] Window that opens child Window - Menu displayed behind child
    By jonjanisch in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 10 Sep 2009, 8:58 AM
  4. Creating an button as box child
    By Dumas in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 26 May 2009, 9:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts