Hi all,
I got the following situation. I create some components dynamically which are inserted after the viewport has been rendered. This is all successful. But when I try to insert such a component in 2 different panels, only the last one gets inserted.
This is just how ExtJS works, because the child component gets a reference to his parent. When you try to add this component to another parent, it checks whether it already has a parent, if so, ExtJS deletes the child from the initial parent and adds it to the new parent.
Now my actual question, is there any way to clone a component with the current config?
I don't mean the cloneConfig() method, because this one uses the initial config and not the current one.
I tried copying it through Ext.apply(copyOfComponent, component) but without success.
Thanks in advance,
Nick