I have a tab container in aspx page and i want to enable disable the last tab in aspx page my tab container is like below
<asp:TabContainer runat="server" ID="tabContainer">
<asp:TabPanel runat="server" ID="tabSettings" HeaderText="Settings">
<HeaderTemplate>Settings</HeaderTemplate>
<ContentTemplate>
<spsp:SlidingParametersSettingsPage ID="SlidingParametersSettingsPage" runat="server" />
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel runat="server" ID="tabRegionSelectionSettings" HeaderText="Exclude / Include Regions">
<HeaderTemplate>Exclude / Include Regions</HeaderTemplate>
<ContentTemplate>
<rssp:RegionSelectionSettingsPage ID="RegionSelectionSettingsPage" runat="server" />
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel runat="server" ID="tabAdvanceSettings" HeaderText="Advance Settings">
<HeaderTemplate>Advance Settings</HeaderTemplate>
<ContentTemplate>
<sfpsp:SmokeFireParametersSettingsPage ID="SmokeFireParametersSettingsPage" runat="server" />
<ssp:SakbotSettingsPage ID="SakbotSettingsPage" runat="server" />
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
<script language="javascript" type="text/javascript">
$find('<%=tabContainer.ClientID%>').get_tabs()[2].set_enabled(false);
</script>
Now for disabling the last tab i used the following in code behind page load:
//tabAdvanceSettings.Enabled = false;
I also want to enable this tab panel on client side when a user uses a shotrcut like Ctrl + Shif + A as shown below but this shortcut only enables the tab not the two user controls ptresent in the last tab. The code for enabling the last tab is :
if (e.keyCode == 65 && isCtrl == true && isShift == true) // Ctrl + Shift + A
{
$find('<%=tabContainer.ClientID%>').get_tabs()[2].set_enabled(true);
}
How can i enable the last tab and also the controls present in the last tab?