Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

How to hide and show tabs in a tabContainer

$
0
0

Hi All,

I am using TabContainer to display 5 tabs, but one of them is hidden (3rd tab).  

In one of the visible tabs there is a LinkButton, when it is clicked the hidden tab must be shown and the tab with the LinkButton must be hidden.

I have tried several alternatives but none of them works. For example via javaScript: 

function ToggleMyCv() 
 {
            $find('<%=TCPanelDeControl.ClientID%>').get_tabs()[2].set_visible(false);
            $find('<%=TCPanelDeControl.ClientID%>').get_tabs()[2].set_enabled(false);
            $find('<%=TCPanelDeControl.ClientID%>').get_tabs()[3].set_visible(true);
            $find('<%=TCPanelDeControl.ClientID%>').get_tabs()[3].set_enabled(true);
            $find('<%=TCPanelDeControl.ClientID%>').set_activeTabIndex(3);
 }

Thank you very much in advance and any help will be appreciated.

Victor


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>