Results 1 to 4 of 4

Thread: how to get component's window

  1. #1
    Sencha User Bogdan0x400's Avatar
    Join Date
    Dec 2010
    Location
    Ukraine, Kiev
    Posts
    55

    Default how to get component's window

    How can I get a reference to the window if I have a reference to a window's child component?

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Code:
    var win = component.findParentByType('window');

  3. #3
    Sencha User Bogdan0x400's Avatar
    Join Date
    Dec 2010
    Location
    Ukraine, Kiev
    Posts
    55

    Default

    I can use the ownerCt property, but how can I move up the control hierarchy until I find the window component? Should I check for xtype == "window"?

  4. #4
    Sencha User Bogdan0x400's Avatar
    Join Date
    Dec 2010
    Location
    Ukraine, Kiev
    Posts
    55

    Default

    Thanks, Condor, that's definitely better than what I've planned doing.

Similar Threads

  1. How to constrain a window to another component
    By The_Jackal in forum Ext GWT: Help & Discussion (1.x)
    Replies: 4
    Last Post: 20 Mar 2009, 2:25 AM
  2. How to put div into front of the Ext.Window component
    By hardcoremore in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Jan 2009, 2:03 PM
  3. Replies: 2
    Last Post: 25 May 2008, 6:12 PM
  4. 'variables' within a window (or other component)
    By keckeroo in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 22 May 2008, 11:14 PM
  5. Problem with progress bar in Window component
    By fshort in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 25 Apr 2008, 8:05 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
  •