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


  • Politics
    • CNN
    • NBC
    • ABC
  • Sports
    • US Sports
      • Baseball
      • Football
      • BasketBall
    • European Sports
      • Soccer
      • Volleyball
  • Events
    • Oscar Awards
    • MTV Movie Awards

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

<telerik:RadPanelBar runat="server" ID="RadPanelBar1" 
    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.

  • DefaultVB.aspx
<%@ Page Language="VB"  %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html>
<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:RadPanelBar RenderMode="Lightweight" runat="server" ID="RadPanelBar1" Width="100%" DataSourceID="EntityDataSource1"
            DataTextField="Text" DataFieldID="id" DataFieldParentID="parentId">
                <telerik:RadPanelItemBinding Depth="0" Expanded="true" />

    <asp:EntityDataSource runat="server" ID="EntityDataSource1" ConnectionString="name=TelerikReadWriteEntities"
        DefaultContainerName="TelerikReadWriteEntities" EntitySetName="Links">


Support & Learning Resources

Find Assistance