If you want to search only the direct children of the parentPanel, you can use getComponent :
var childPanel = Ext.getCmp('parentPanel').getComponent('childPanel09'); if (childPanel) { alert('yes. child exists'); }
If you want to search not only among direct children, but at any level under the parent panel, you can use find :
var childPanel = Ext.getCmp('parentPanel').find('id', 'childPanel09')[0]; // [0] because find returns array if (childPanel) { alert('yes. child exists'); }
Molecular man
source share