See Technical Demos of the New Features in the DevCraft R1 2017 Release Webinar. Save Your Seat!

DropDownTree - Entity DataSource

  • Politics
  • Sports
  • Events
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

This example shows how to codelessly bind RadTreeView to EntityDataSource. Since the EntityDataSource is not hierarchical by nature you need to set the DataFieldID and DataFieldParentID properties:

<telerik:RadDropDownTree runat="server" ID="RadDropDownTree1" 
    DataSourceID="EntityDataSource1" DataTextField="Text" 
    DataFieldID="id" DataFieldParentID="parentId" >
<asp:EntityDataSource runat="server" ID="EntityDataSource1" 
	DefaultContainerName="TelerikReadWriteEntities" EntitySetName="Links">

You may also see how to utilize Telerik OpenAccess ORM as a data access layer for our AJAX controls by visiting the OpenAccess ORM live demos here.

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

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <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="RadDropDownTree1" runat="server" DataSourceID="EntityDataSource1" DefaultMessage="Please select" Width="100%"
            DataTextField="Text" DataFieldID="id" DataFieldParentID="parentId">
            <DropDownSettings Width="300px" />
        <asp:EntityDataSource runat="server" ID="EntityDataSource1" ConnectionString="name=TelerikReadWriteEntities"
            DefaultContainerName="TelerikReadWriteEntities" EntitySetName="Links">

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?