PDA

View Full Version : HOWTO ITERATE OVER TEXTFIELD ITEMS IN A TAB



rich71
20 Jul 2010, 8:22 PM
hI,

I AM TRYING TO LOOP THE TEXTFIELDS IN THE TAB, BUT i AM THAT GOOD WITH THE SYNTAX YET.
Could someone help me with this one?



Ext.getCmp('aanMakenGebruikerTabPanel').on('tabchange',function(tabPanel,tab){
AanMakenGebruikerWindow.syncShadow();
tab.items.each(function(item) {
if (item.isFormField) {
item.validate();
}

} /* anything you want to set your scope to */);
//Ext.getCmp('Mobiel1Veld').validate();
//Ext.getCmp('Email1Veld').validate();
//console.log("[aanMakenGebruikerTabPanel] resize -- sync");
});thanks, richard

Animal
20 Jul 2010, 9:23 PM
http://www.sencha.com/deploy/dev/docs/?class=Ext.Container&member=findByType

rich71
21 Jul 2010, 8:57 AM
Thanks, I already found the answer.

I used the cascade function so that I could also reach the textfields in a fieldset.