PDA

View Full Version : Panel insert



t-1000
22 Sep 2010, 1:19 AM
Sorrry, i can unsedrstand how replacing Panel children, i do this



//gPanel is example of Ext.Panel
gPanel.removeAll();
gPanel.insert(1, new Ext.Panel({ width: 100, height: 300, title: 'TEST' }));
gPanel.insert(0, App.brand.tree());
gPanel.doLayout();

Nothing. Whats problem?

laurentParis
22 Sep 2010, 4:37 AM
gPanel.removeAll();
gPanel.add(new Ext.Panel({ width: 100, height: 300, title: 'TEST1' }));
gPanel.add(new Ext.Panel({ width: 100, height: 300, title: 'TEST2' }));
//gPanel.add(App.brand.tree()); // << I don't know what is it, so I prefer comment this line
gPanel.doLayout();