Wednesday, July 28, 2010

Hiding Tabs in TabLayoutPanel at runtime

Hi All,

I am trying to hide and show some panels with in a TabLayout Panel
at runtime.

I have the following code in my UiBInder

<g:TabLayoutPanel ui:field="myTabPanel">
<g:tab >
<g:header>Tab1</g:header>
<g:FlowPanel ui:field="tab1Panel" height="100%" width="100%"></
g:FlowPanel>
</g:tab>
<g:tab >
<g:header>Tab2</g:header>
<g:FlowPanel ui:field="tab2Panel" height="100%" width="100%">
</g:FlowPanel>
</g:tab>
</g:TabLayoutPanel>

And in the View i have..( passing either true or false based on
whether i want to show the second tab or hide it.

myTabPanel.getTabWidget(1).setVisible(true);

And it's not hiding the tab properly..

Any comments..

Thanks..

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate