<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Menu.Examples.Functionality.ClientTemplates.DefaultCS" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
<link rel="stylesheet" href="styles.css" 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 size-narrow">
<telerik:RadMenu RenderMode="Lightweight" runat="server" ID="RadMenu1" DataSourceID="SqlDataSource1" DataFieldID="id"
DataFieldParentID="parentId" DataTextField="Text" DataValueField="id">
<ClientItemTemplate>
<img alt="#= Text #" src="Images/#= Text #.png" />
<span class="templateText">#= Text #</span>
</ClientItemTemplate>
<DataBindings>
<telerik:RadMenuItemBinding Depth="0" ExpandMode="WebService" />
</DataBindings>
<WebServiceSettings Path="Links.asmx" Method="GetMenuLinks" />
</telerik:RadMenu>
</div>
<asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
SelectCommand="SELECT * FROM Links WHERE parentId IS NULL" />
</form>
</body>
</html>