POLALA.COM
welcome to my space
X
Web Design | Video Games | RVs | Religion | Management | Supplements and Vitamins | Software | Basketball | Related articles
Search:  
Welcome to:polala.com
 HOME   [SOLVED] Dynamically Change Panel Items

[SOLVED] Dynamically Change Panel Items

Published by: webmaster 2009-01-09
  • Hi-
    I have a border layout panel and I want to change the center region item:
    switchTo : function(targetPanel) {
    var oldCenter = VFA.controller.getPanelByRegion('center');
    var viewPort = Ext.getCmp('viewport');
    viewPort.remove(oldCenter);
    var targetObj = Ext.getCmp(targetPanel);
    viewPort.add(targetObj);
    targetObj.show();
    viewPort.doLayout();
    }
    This does seem to remove the existing center panel, but the new one does not appear. I do see the new panel appear in the item list (and the old panel disappear) of the border panel though so it appears it did get added properly but yet not rendered or something. What is the right way to do this? I've tried various incantations of calling render() without success.

    I could use a card layout and achieve this but don't know if dynamically adding panels to a form panel would have the same effect. A step further, I could predefine all of the panels, add them to the card layout and then switchTo would simply be doing a setActiveItem(x).
    Computers & Structures : Dynamic analysis of thick laminated shell ::
    The resulting ordinary differential equations are solved by the finite element method. The panel is subjected to dynamic pressure excitation and three
    http://linkinghub.elsevier.com/retrieve/pii/S0045794906000988
    HOME

    But partly I'd like to not predfine all of the panels and partly I'd like to know if changing the panels items is possible (and what the right way to do it is).

    Thanks
    -Doug


  • Got it, thanks for the info.
    I've got it working as a card layout now and its behaving itself quite nicely.
    Thanks again
    -Doug


  • Center region of border layout is somewhat special in that that it has to be present. In any other case add/remove/doLayout should work as expected.





  • Where's The Advantage In Windows Genuine Advantage?
    Stocks Bounce After S&P Joins Bear Market
    PRINT Add to favorites
  • how old do i look picture included
  • nothing to do on the internet
  • before a person dies do you believe that a love on comes for that person
  • how do you make your skin glowing like not pale doesnt look like you just woke up
  • hardly held my hands in relationship for 2 years reasons
  • what is wrong with people how is this normal
  • help really needed thanks
  • how do you prevent dye to go in your hair when you dye it
  • how do you think i should swtich my clothing style up
  • what is a good hair mousse
  • hi answer my question 10 points best answer
  • what do you think of the names gage westin and whitley reigh
  • what are some hot names
  • what do you think of this dress
  •  
  • victoria secret pink body splash
  • needing a change from blonde hair
  • just write the first word that comes to mind
  • yawn and stretch move
  • sawyer and bella thoughts
  • how do you prevent dye to go in your eyes when you dye it
  • i want my lips become permanently red but how
  • how can i get hair like this when i have straight hair
  • how come my hair starts to smell horrible when i sweat even if i use shampoo
  • are these uggs real tell me please
  • question about applecare
  • background of these names
  • what jeans look best on a guy
  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [SOLVED] Dynamically Change Panel Items , Please add it free.
     Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 polala.com        Site made:CFZ