Hi
I'm trying to make a tab with MultiPage control invisible in runtime.
I wrote the following code:
I'm using this code in the page load to hide the second tab:
When I open the page and switch to the third tab I see the content of the second tab.
I also tried setting the RadPageView as invisible , but then the third tab shows an empty page.
Any ideas?
I'm trying to make a tab with MultiPage control invisible in runtime.
I wrote the following code:
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0"> |
<Tabs> |
<telerik:RadTab Text="First Tab" Value="First"/> |
<telerik:RadTab Text="Second Tab" Value="Second"/> |
<telerik:RadTab Text="Third Tab" Value="Third"/> |
</Tabs> |
</telerik:RadTabStrip> |
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"> |
<telerik:RadPageView ID="First" runat="server"> |
<asp:Label ID="Label1" runat="server" Text="First"/> |
</telerik:RadPageView> |
<telerik:RadPageView ID="Second" runat="server"> |
<asp:Label ID="Label2" runat="server" Text="Second"/> |
</telerik:RadPageView> |
<telerik:RadPageView ID="Third" runat="server"> |
<asp:Label ID="Label3" runat="server" Text="Third"/> |
</telerik:RadPageView> |
</telerik:RadMultiPage> |
I'm using this code in the page load to hide the second tab:
var tab=RadTabStrip1.Tabs.FindTabByValue("Second"); |
tab.Visible = false; |
When I open the page and switch to the third tab I see the content of the second tab.
I also tried setting the RadPageView as invisible , but then the third tab shows an empty page.
Any ideas?