1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Creating separators in RadTabStrip

Creating separators in RadTabStrip

4 posts, 0 answered
  1. Richard
    Richard avatar
    63 posts
    Registered:
    20 Jan 2010
    18 May 2011
    Link to this post
    Hi Guys,

    I'm trying to add separators in my top level navigation but I can't find the code to edit.

    In v3.7 you could open the SiteTabStip.ascx from within Sitefinity/Navigation35 and add the following

    SiteMapNode rootNode = SiteMap.RootNode;
    foreach (SiteMapNode node1 in rootNode.ChildNodes)
    {
        RadTab tab = new RadTab();
        tab.Text = node1.Title;
        tab.NavigateUrl = node1.Url;
        this.RadTabstrip1.Tabs.Add(tab);
        AddSeparator(tab, this.RadTabstrip1.Tabs);
    }


     and then add the appropriate CSS. I cant seem to find where to edit the RadTabStrip in v4.1?

    Has anyone done this yet and if so if you can let me know what you did that would be great.
    thanks
    Richard
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    19 May 2011
    Link to this post
    Hello Richard ,

    Create a custom template - ascx file where you declare RadTabStrip and add your logic there. Then map the template to the NavigationControl.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Richard
    Richard avatar
    63 posts
    Registered:
    20 Jan 2010
    19 May 2011
    Link to this post
    Thanks Ivan, am I correct in thinking I can use the original code from the SiteTabStip.ascx file from v3.7?
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    24 May 2011
    Link to this post
    Hi Richard Turner,

    Most of the code can be used, except for the ICacheableObject interface and its implementation. You also have to substitute the check in the Render method override with the one from this forum thread.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered