1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    39
    Vote Rating
    0
    rich71 is on a distinguished road

      0  

    Default HOWTO ITERATE OVER TEXTFIELD ITEMS IN A TAB

    HOWTO ITERATE OVER TEXTFIELD ITEMS IN A TAB


    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?


    Code:
    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

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,506
    Vote Rating
    54
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

  3. #3
    Ext User
    Join Date
    Jul 2010
    Posts
    39
    Vote Rating
    0
    rich71 is on a distinguished road

      0  

    Default


    Thanks, I already found the answer.

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

Similar Threads

  1. How to Iterate over Panel items?
    By mtigua in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 2 Mar 2010, 11:40 AM
  2. [SOLVED] how to Iterate over FormPanel Items?
    By rissato in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 3 Jun 2009, 1:32 PM
  3. How to iterate over and change the CSS class of every combo items?
    By truszeka in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 26 Dec 2008, 4:31 PM
  4. Howto to properly load items into ComoBox?
    By Bugs in forum Ext GWT: Help & Discussion (1.x)
    Replies: 5
    Last Post: 9 Dec 2008, 6:43 AM
  5. Iterate through combo box items
    By Royan in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 6 Dec 2007, 12:18 AM

Thread Participants: 1

Tags for this Thread