Question: Is there a way to query "up"? I'm in a Component and want to register listeners to it's parents events with control(). This requires a Query which gets me the parent of my main view.

Answer: 
In ExtJS4, you can use 'up()' from an Ext Element.

The params are a string of the parent element you wish to find e.g:

```
var parentEl = Ext.get('childID').up('div.parentClass'); 

```

If you provide some details about the structure of your components/elements I can give a specific example which should fit.

EDIT: To show going 'up' from a component

```
var myComponent = // however you've got it

var theParentEl = myComponent.getEl().up('div.parentClass');

```
The Sencha help says "Member expressions from candidate Components may be tested. If the expression returns a truthy value, the candidate Component will be included in the query:" in the <http://docs.sencha.com/ext-js/4-0/#!/api/Ext.ComponentQuery> help.

Took me a while to realize I can do the following in my controller:

```
this.control({
  'window{down("testcomp")}[down]': { beforedestroy: this.doNotCloseIfUnsaved }
});

```

Using the {} operation, we can call any arbitrary code. **Really bad from an efficiency standpoint**, but it got the job done. I had to add the [down] because it runs component queries from right to left, so we have to be sure down() exists before we try running it (on every component). Thus, I was able to attach an event to whatever window holds my component.

Of course, other functions can be used too, like child() instead of down() if you want to ensure it is the immediate child rather than just anywhere below.