I am creating dynamic containers in extjs. I have parent container whose itemId is "ParentContainer" and child container whose itemid is "ChildContainer". Now I am adding child container inside parent container by using the following code.
var child = Ext.createWidget('childcontainer');
var parent = Ext.ComponentQuery.query('#ParentContainer')[0];
parent.add(child);
Now its working fine but the issue is when I am trying to retrieve all the childs of the parent container by using the following code, it only returns first child but I need all of the childs
var par = Ext.ComponentQuery.query('#ParentContainer')[0];
var childs = par.query('#ChildContainer');
I need an array of all the childs, can anybody help. Thanks.