New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

TextMode

  • UI for ASP.NET Ajax
  • UI for Silverlight
Please select a DropDownNode and the entry's text will show the full path of the node.

RadDropDownTree supports two modes of text visualization – Default and FullPath. When FullPath option is selected the full path of the selected DropDownNode is shown in the control. Setting TextMode property to Default only DropDownNode’s text is presented.

Every entry has FullPath property which gets the full path of the selected/checked DropDownNode.

  • DefaultVB.aspx
<%@ Page Inherits="Telerik.QuickStart.QsfPage"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-thin">
            <telerik:RadDropDownTree RenderMode="Lightweight" ID="RadDropDownTree2" runat="server" Width="300px" DefaultMessage="Please select"
                DataSourceID="ObjectDataSource1" DataFieldID="ID" DataFieldParentID="ParentID" TextMode="FullPath"
                DataTextField="Text">
            </telerik:RadDropDownTree>
    </div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetSiteData"
        TypeName="Telerik.Web.Examples.SiteDataItem"></asp:ObjectDataSource>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance