PDA

View Full Version : How to list every panel in a tabpanel?



filippo.ferrari
24 Oct 2010, 11:22 PM
I want to list every panel in my tabpanel with id and title.... I'm adding panels dinamically in my app. and I wanto to post id and title with other data....

:-?

Animal
24 Oct 2010, 11:34 PM
"list"?

Iterate through?

http://dev.sencha.com/deploy/dev/docs/?class=Ext.Container&member=items

Animal
24 Oct 2010, 11:35 PM
Hmm.. that link showed up a bug in the docs!

I meant the items property, not the config.

filippo.ferrari
25 Oct 2010, 10:51 PM
Perfect, I've solved with MyPanel.each() . Now I can iterate through my elements and every items property, how about to send data with a single ajax request? What is useful an array or something else? I've to send ids and titles with other data in my form.