Showing posts with label rendered. Show all posts
Showing posts with label rendered. Show all posts

Saturday, March 24, 2012

TabContainer always hidden

hi there,

my tabcontainer is always rendered as hidden.

this is the asp code

 <td class="text1"> <ajaxToolkit:TabContainer runat="server" ID="TabContainer1" Visible="true"> <ajaxToolkit:TabPanel runat="server" ID="TabPanel1" HeaderText="TabPanel1"> <ContentTemplate> TabPanel1 </ContentTemplate> </ajaxToolkit:TabPanel> <ajaxToolkit:TabPanel runat="server" ID="TabPanel2" HeaderText="TabPanel2"> <ContentTemplate> TabPanel2 </ContentTemplate> </ajaxToolkit:TabPanel> <ajaxToolkit:TabPanel runat="server" ID="TabPanel3" HeaderText="TabPanel3"> <ContentTemplate> TabPanel3 </ContentTemplate> </ajaxToolkit:TabPanel> </ajaxToolkit:TabContainer> </td>

and this is how it renders

<td class="text1"> <div class="ajax__tab_xp" id="ctl00_ContentPlaceHolder1_TabContainer1" style="visibility:hidden;"><div id="ctl00_ContentPlaceHolder1_TabContainer1_header"><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_body"><div id="ctl00_ContentPlaceHolder1_TabContainer1_TabPanel1"> TabPanel1 </div><div id="ctl00_ContentPlaceHolder1_TabContainer1_TabPanel2" style="display:none;visibility:hidden;"> TabPanel2 </div><div id="ctl00_ContentPlaceHolder1_TabContainer1_TabPanel3" style="display:none;visibility:hidden;"> TabPanel3 </div></div></div> </td>

can any advise me how to fix this please?

Maurice

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.

Maurice


I've dynamic TabContainer (in code behind), andyourTabContainer.ActiveTabIndex = 0; helped me to solve this issue.


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 1.5.0.12 the tabs are always hidden.

Does any one have any ideas why it does this?


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.

Wednesday, March 21, 2012

TabContainer is just invisible

Hi,

this is the first time I work with the Ajax toolkit.


I want to put a TabContainer on my Usercontrol, with three tabs.

It works, it is rendered but it just doesn't show.

It keeps having the inline style definition 'visibility:hidden'.

Does anyone know how to remove this?

Thx

This happened to me awhile ago and I hated it! In IE6/7 the tab renders fine but in FF it is hidden.

I managed to find the culprit for my situation, not sure will it help you.

Basically my tab container had 3 panels, in each tab panel I added a user control. My problem was one of the user controls have a calendar extender toolkit control that had a ondateselection client side event added. Once i removed that event it worked.


I don't think the tabcontainer is to blame... Tested, used with firefox here..

But, I have seen stuff disapeering when using rounded corners extender sometimes. Maybe you have that or something else wrapped around your tabcontainer?


I'm also having this problem. If anyone has the solution it would be greatly appreciated.

<div id="ctl02" class="ajax__tab_xp" style="visibility:hidden;"><div id="ctl02_header"><span id="__tab_ctl02_ctl00">Test Header</span></div><div id="ctl02_body" style="height:150px;"><div id="ctl02_ctl00"> Test Content </div></div></div>

Ive just solved this problem. I simply removed 'OnClientActiveTabChanged="ClientFunction" ' which was still in there from when I took the code from the Sample Website. boonaap, I hope this solves your problem too. It sounds like it might since youre having an identical problem.


well eh it didn't,Confusedit was even a bit more eh stupid

Forgot to add all the info in the web.config...

Yes Iknow :)=)

don't ask