[ACCEPTED]-ExtJs panel - adding dynamic components-panel

Accepted answer
Score: 14

I found the cause of the problem.

Cause: when 5 we add components with same 'id' to a panel, then 4 the newly added component will get added 3 to the top of the panel.

Fix: Use 'itemId' instead 2 of 'id' while adding same component to the 1 panel.

Hope this will be useful for someone.

Score: 11

You can use insert method instead to specify the 2 index of panel items that you want to put 1 your component at:

var index = panel.items.length;
panel.insert(index, items);

// or if it always going to be the second item
panel.insert(1, items);

Here it is in the docs.

More Related questions