This is a migrated thread and some comments may be shown as answers.

[Solved] TabStrip Navigation and Child Nodes

1 Answer 100 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ryan
Top achievements
Rank 2
Ryan asked on 13 Sep 2010, 03:52 PM
I recognize that the TabStrip does not support heirarchical navigation in the TabStrip itself.  That being said, is there a way to accomplish this:

I have a SiteMap kind of like the following:

Page 1
-- Page 1 Sub Page 1
-- Page 1 Sub Page 2
Page 2
-- Page 2 Sub Page 1
-- Page 2 Sub Page 2

If I navigate to Page 1 or Page 2, the TabStrip correctly identifies the Tab.  If I go down further (via the page itself or some other means) in the Site Map structure it loses track.  I think I can accomplish this via jQuery but I'm trying to figure out how to get it to select the appropriate tab without the redirect when I select "Page 1" or "Page 2" tabs.

1 Answer, 1 is accepted

Sort by
0
Ryan
Top achievements
Rank 2
answered on 14 Sep 2010, 08:28 PM
The solution I ended up with was FAR simpler than I expected:
<%

Html.Telerik().TabStrip()

.Name(

 

"Menu")

 

 

 

.BindTo("ApplicationSiteMap", (item, siteMapNode) =>

 

{
    

 

if (Request.Url.ToString().Contains("Client"))

 

    {

 

 

        if (item.Text == "Clients")

 

        {

            item.Selected =

 

true;

 

        }

    }

}) .Render();
%>

Tags
TabStrip
Asked by
Ryan
Top achievements
Rank 2
Answers by
Ryan
Top achievements
Rank 2
Share this question
or