Remove lines from tree vertical menu
How can I style out the dashed lines in a vertical tree menu?
Thanks!
Ron
Hi Ron,
The existence of lines connecting Nodes is controlled by the ShowLineImages property (default is True). Setting ShowLineImages to False hides connecting images. You can also hide/modify the lines by applying one of our skins to your menu or create your own custom one and set it to your navigation. Also, here you can find some more information about css classes, applied to the RadTreeView. The class you can use to apply styles on the lines is .rtLines.
Greetings,
Jen Peleva
the Telerik team
Hello Nancy,
The property I was referring to isn't exposed in our default navigation. You can set it declaratively to a custom RadTreeView navigation, created in Visual Studio (an .ascx file with a SiteMapDataSource). Then this navigation can be registered in Sitefinity as a new control.
.ascx file
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RedTreeView.ascx.cs" Inherits="SitefinityWebApp.Controls.RedTreeView" %>
<%@ Register TagPrefix="sf" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<
asp:SiteMapDataSource
ID
=
"SiteMapDataSource1"
runat
=
"server"
ShowStartingNode
=
"false"
/>
<
telerik:RadTreeView
ID
=
"RTV"
runat
=
"server"
onnodedatabound
=
"RTV_NodeDataBound"
DataSourceID
=
"SiteMapDataSource1"
ShowLineImages
=
"false"
></
telerik:RadTreeView
>
Thank you for your help Jen. I will give that a try.