Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 11, 2012 03:57 AM by suresh dasari
May 13, 2007 02:46 AM|LINK
my tabcontainer is always rendered as hidden.
this is the asp code
<ajaxToolkit:TabContainer runat="server" ID="TabContainer1" Visible="true">
<ajaxToolkit:TabPanel runat="server" ID="TabPanel1" HeaderText="TabPanel1">
<ajaxToolkit:TabPanel runat="server" ID="TabPanel2" HeaderText="TabPanel2">
<ajaxToolkit:TabPanel runat="server" ID="TabPanel3" HeaderText="TabPanel3">
and this is how it renders
<div class="ajax__tab_xp" id="ctl00_ContentPlaceHolder1_TabContainer1" style="visibility:hidden;">
<span id="__tab_ctl00_ContentPlaceHolder1_TabContainer1_TabPanel1">TabPanel1</span><span id="__tab_ctl00_ContentPlaceHolder1_TabContainer1_TabPanel2">TabPanel2</span><span id="__tab_ctl00_ContentPlaceHolder1_TabContainer1_TabPanel3">TabPanel3</span>
</div><div id="ctl00_ContentPlaceHolder1_TabContainer1_TabPanel2" style="display:none;visibility:hidden;">
</div><div id="ctl00_ContentPlaceHolder1_TabContainer1_TabPanel3" style="display:none;visibility:hidden;">
can any advise me how to fix this please?
May 13, 2007 03:18 AM|LINK
it may be obvious to most people but the first div is meant to have the style="visibility:hidden;" but the control is never rendered to the screen, i.e. i cant see the tabs.
Sep 20, 2007 12:58 PM|LINK
I've dynamic TabContainer (in code behind), and yourTabContainer.ActiveTabIndex = 0; helped me to solve this issue.
Sep 25, 2007 05:09 AM|LINK
I also have this same problem where the tabcontainer and its tabpanels are always hidden. The HTML markup is all there when you view source of the page but the container and panels have a style attribute of visibility:hidden.
This displays fine in IE6 but under Firefox 22.214.171.124 the tabs are always hidden.
Does any one have any ideas why it does this?
Sep 26, 2007 07:49 AM|LINK
I managed to fix my problem.
The problem was I had a calendar extender control within the tabpanel that had its ondateselection property set. For some unknown reason with that property set, Firefox refuses to display the tabcontainer.
Jan 18, 2008 05:04 AM|LINK
I have the same problem with the tabcontainer getting hidden. It's happening on IE6 on some (but not every) postback
Feb 18, 2008 03:56 PM|LINK
I have the same problem, of FF and IE7 the Tabs are hidden. Any ideas?
<ajaxToolkit:TabContainer ID="Tabs" runat="server" Width="788px" Height="610px" Visible="true"
<ajaxToolkit:TabPanel HeaderText=" List ">
<ajaxToolkit:TabPanel HeaderText="Info ">
<asp:Label runat="server" ID="CurrentTab" /><br />
<asp:Label runat="server" ID="Messages" />
<div> <div id="Tabs" class="ajax__tab_xp" style="width:788px;visibility:hidden;"> <div id="Tabs_header"> </div><div id="Tabs_body" style="height:610px;"> </div></div> Current Tab: <span id="CurrentTab"></span><br /> <span id="Messages"></span> </div>
Feb 19, 2008 02:51 PM|LINK
It seems you have to set the ActiveTabIndex to 0 programmatically to make the TabContainer visible.
By the way, I have another error with the tab container.
I add some tab in my tab container programmatically. ie :
For i As Integer = 0 To yearForecasts.ForecastsList.Count - 1
Dim panel As New TabPanel()
panel.ID = "Panel_" & yearForecasts.ForecastsList.Keys(i).QuarterId & "_" & yearForecasts.ForecastsList.Keys(i).QuarterYear.Value
panel.HeaderText = yearForecasts.ForecastsList.Keys(i).ToString()
Dim table as New Table()
QuarterCalculationContainer.ActiveTabIndex = 0
It works fine when the page renders for the first time, but in each panel, I have some button.
When I click on one of those buttons, an exception is caught, because the Tab Container has 0 panel, and the ActiveTabIndex is set to 0.
Does anybody know how to make the Tab Container remember of its panels ?
Thanks a lot
Mar 07, 2008 04:31 PM|LINK
It seems if you embed another ajax control within a panel the entire container does not render. I've had something similar happen when nest a modal popup panel within a tab panel....
Mar 17, 2008 11:05 AM|LINK
I had the some problem this morning and even though my solution may be specifc to my project, I like to share it:
I copied the url that loads the libraries into a new browser tab:
was displayed fine.
TabContainer ajax visibility