Results 1 to 4 of 4

Thread: How do I find a child component by name?

  1. #1
    Ext User
    Join Date
    Aug 2009
    Posts
    100
    Vote Rating
    0
      0  

    Default 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 User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,987
    Vote Rating
    934
      0  
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Ext User
    Join Date
    Aug 2009
    Posts
    100
    Vote Rating
    0
      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 User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,987
    Vote Rating
    934
      0  
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •