TagCloud - Data Source Controls

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

RadTagCloud can be bound to all ASP 3.5 DataSource control types, such as EntityDataSource.

<telerik:RadTagCloud ID="RadTagCloud1" runat="server"
    DataSourceID="EntityDataSource1"
    DataTextField="ProductName"
    DataWeightField="UnitPrice"
    RenderItemWeight="true">
    </telerik:RadTagCloud>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server"
    ConnectionString="name=NorthwindReadOnlyEntities"
    DefaultContainerName="NorthwindReadOnlyEntities"
    EntitySetName="Products"
    Select="it.[ProductName], it.[UnitPrice]">
    </asp:EntityDataSource>

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 Language="C#"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<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-narrow">
        <telerik:RadTagCloud RenderMode="Lightweight" ID="RadTagCloud1" runat="server" DataSourceID="EntityDataSource1"
            DataTextField="ProductName" DataWeightField="UnitPrice" MaxNumberOfItems="20"
            TakeTopWeightedItems="false" RenderItemWeight="true">
        </telerik:RadTagCloud>
        <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=NorthwindReadOnlyEntities"
            DefaultContainerName="NorthwindReadOnlyEntities" EntitySetName="Products" Select="it.[ProductName], it.[UnitPrice]">
        </asp:EntityDataSource>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?