Access parent component reference from xtype's initComponent method

251 Views Asked by At

I have created a custom xtype named MaterialSelector and used in one of my ext views.

I need to refer parent views from the initComponent function of my custom xtype. When I console.log this.xtypesChain from initComponent method it returns following array of xtypes

["component", "box", "container", "fieldset", "MaterialSelector"]

When I try to access parent views by xtype like: this.findParentByType('fieldset') script always returns undefined. Whether I am doing something wrong here?

0

There are 0 best solutions below