How can I link to a specific tab (Telerik RadTab) from another page
I am using Telerik (for ASP.NET AJAX) RadMultiPage controls to create nested tabs, and I would like to link to a specific tab from another page. But I couldn't find the right way.
Here is my code
<telerik:RadTabStrip runat="server" ID="RadTabStrip1" MultiPageID="RadMultiPage1" SelectedIndex="0">
<Tabs>
<telerik:RadTab Text="ParentTab1"></telerik:RadTab>
<telerik:RadTab Text="ParentTab2"></telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">
<telerik:RadPageView ID="ParentTab1" runat="server" >
<telerik:RadTabStrip runat="server" ID="RadTabStrip2" MultiPageID="RadMultiPage2" SelectedIndex="0">
<Tabs>
<telerik:RadTab Text="ChildTab1"></telerik:RadTab>
<telerik:RadTab Text="ChildTab2"></telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage2" SelectedIndex="0" runat=server>
<telerik:RadPageView ID="ChildTab1" runat="server">
<%--ChildTab1 Content--%>
</telerik:RadPageView>
<telerik:RadPageView ID="ChildTab2" runat="server" >
<%--ChildTab2 Content--%>
</telerik:RadPageView>
</telerik:RadMultiPage>
</telerik:RadPageView>
</telerik:RadMultiPage>
And it looks like this:
The question is how to insert the link to "ChildTab2" to another page.
+4
source to share
1 answer
The quick answer is "You can't."
Tabs are simple HTML and JavaScript, when you click on a tab, the PageViews are displayed, that's all. These are not bindings that you can switch to.
What you might consider is to add a querystring parameter that you can work with in code and set the tab you want.
You can of course do this on the client, but accessing the controls can be a bit tricky and the URL is parsed in the same way (whether it is a request or a hash).
+2
source to share