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

Server-side Templates

RadDropDownTree  provides several templates for easier customization of the dropdown.

Header Template - positioned at the very top of the DropDown it can easily be customized in order to match the desired appearance.

Node Template - you can create a single template that could be applied to all of the nodes in the DropDownTree.

Footer Template - positioned at the very bottom of the dropdown it enables you set your custom footer.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • styles.css
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="DefaultVB.aspx.vb" Inherits="DropDownTree.Examples.Functionality.Templates.DefaultVB" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
</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 no-bg size-wide">
        <div class="content">
            <div class="dropdowntreeholder">
                <telerik:RadDropDownTree RenderMode="Lightweight" ID="RadDropDownTree1" runat="server" Width="350px" Skin="Default"
                    DefaultMessage="Please select a person from the list">
                    <DropDownSettings Width="350px" />
                    <HeaderTemplate>
                        <div class="header">
                            <span>Employees </span>
                        </div>
                    </HeaderTemplate>
                    <DropDownNodeTemplate>
                        <div class="nodeTemplate">
                            <span>
                                <%# DataBinder.Eval(Container, "Text") %>
                            </span>
                        </div>
                    </DropDownNodeTemplate>
                    <FooterTemplate>
                        <div class="footer">
                            <span>End of list</span>
                        </div>
                    </FooterTemplate>
                </telerik:RadDropDownTree>
            </div>
        </div>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance