Creating separators in RadTabStrip
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);
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
Thanks Ivan, am I correct in thinking I can use the original code from the SiteTabStip.ascx file from v3.7?
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