1. #1
    Ext User
    Join Date
    Aug 2009
    Posts
    100
    Vote Rating
    0
    bbxx is on a distinguished road

      0  

    Default How do I find a child component by name?

    How do I find a child component by name?


    I have a fieldset which is a child of a form. I am trying to find it by name, but I can't get it to work. This is what I'm trying:

    Code:
    if(action.result.data.bIsBucket == 1)
                                thisForm.find('name', 'formulaBucketFieldset').expand();
                            else
                                thisForm.find('name', 'formulaBucketFieldset').collapse();

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,126
    Vote Rating
    516
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext User
    Join Date
    Aug 2009
    Posts
    100
    Vote Rating
    0
    bbxx is on a distinguished road

      0  

    Default


    Well, I settled with finding a child field of the fieldset and then using findParentBy to find the fieldset. findField doesn't work for finding a fieldset it seems, just fields.

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,126
    Vote Rating
    516
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar