Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Show and hide tabsets

    I have a section stack with 2 sections. In the bottom section I have a horizontal layout (HLayout) that contains 3 tabsets (TabA, TabB & TabC). On startup/initialization TabC has its visibility set to false (TabC.setVisible(false)), so only TabA & TabB are showing. Now when I click a button elsewhere on the display I would like to hide TabA & TabB and show TabC. TabA & TabB hide just fine, but TabC does not show up. I can get TabC to eventually show up but I have to manually collapse the sectionstacksection it and HLayout are a part of and expand it again. Is there anyway to accomplish what I'm trying to do? Am I doing it in an incorrect way?

    Thanks,
    Chris

    GoogleChrome
    Smart GWT 3.0
    GWT 2.4

    Code:
    TabA.setVisible(false);
    TabB.setVisible(false);
    TabC.setVisible(true);
    TabC.redraw();
    HLayout.redraw();

    #2
    Nevermind, I figured it out. I was using GWT components inside of Smart GWT components farther down the hierarchy. Once I switched them over to Smart GWT it started to work.

    Comment

    Working...
    X