Results 1 to 4 of 4

Thread: Hiding/Showing Widgets in a Form Panel

  1. #1
    Ext User
    Join Date
    May 2009
    Posts
    3
    Vote Rating
    0
      0  

    Default Hiding/Showing Widgets in a Form Panel

    I have a FormPanel populated with a FieldSet containing a single TextField.

    Upon a certain event, I want to be able to hide this FieldSet and show a ComboBox in its place.
    The hiding part works fine, but the new ComboBox does not show up.

    Code:
    aFieldSet.hide();
    form.add(aComboBox);
    aComboBox.show();
    Any ideas?

    Thanks in advance!

  2. #2
    Sencha User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,007
    Vote Rating
    936
      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
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Redwood City
    Posts
    30,862
    Vote Rating
    85
      0  

    Default

    Have you read the very detailed, in-depth discussion at http://extjs.com/deploy/ext-3.0-rc1....ner&member=add ?
    Longtime Sencha engineer. Now surplus to requirements apparently...

  4. #4
    Ext User
    Join Date
    May 2009
    Posts
    3
    Vote Rating
    0
      0  

    Default

    Yes, this is exactly what I was looking for!

    Thanks!

Posting Permissions

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