Search code examples
javascriptextjsextjs3

How to add container multiple time in extjs item of penal


I have a container which I am adding in my item of panel. me.add(Contain);

I wanted to add this container multiple time on some condition. I am using for loop and at end I am writing. panel.doLayout(); It is appearing only one container is adding. Am I missing something. How to old multiple container in item of extjs panel.


Solution

  • Before add container multiple times in to your panel. Check that container 
    you are adding does not have id or itemId as a config property.
    
    So if you want to add that container multiple time you can use that container
    with different itemId.
    Otherwise it will add only one container and other added container will not
    displayed on GUI.