<%@ Page Language="c#" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
<link rel="Stylesheet" type="text/css" href="styles.css" />
<script type="text/javascript" src="scripts.js"></script>
</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">
<h2 class="demoTitle">Products List</h2>
<telerik:RadScriptBlock runat="server" ID="RadCodeBlock1">
<script type="text/javascript">
var listView;
Sys.Application.add_load(function () {
listView = $find('<%= RadListView1.ClientID %>');
});
</script>
</telerik:RadScriptBlock>
<telerik:RadListView ID="RadListView1" runat="server" RenderMode="Lightweight">
<LayoutTemplate>
<div id="mainContentWrapper">
<div id="scrollArea">
<div id="itemContainer">
</div>
</div>
</div>
<div style="width: 700px">
<telerik:RadButton RenderMode="Lightweight" ID="ShowMoreButton" runat="server" Text="Show more results" OnClientClicked="function(){appendListViewData(2);}"
AutoPostBack="false" CssClass="button" Skin="Silk"></telerik:RadButton>
<telerik:RadButton RenderMode="Lightweight" ID="RadButton1" runat="server" Text="Auto-Load" OnClientClicked="function(){toggleAutoLoad()}"
AutoPostBack="false" CssClass="button" Skin="Silk"></telerik:RadButton>
</div>
</LayoutTemplate>
<ClientSettings>
<DataBinding ItemPlaceHolderID="itemContainer">
<ItemTemplate>
<div class="item">
<div class="content">
<h3>#= productName #</h3>
<div class="image-holder">
<img src="#= imageURL#" alt="#= productName #" />
</div>
<div class="details">
<span>Product ID: #= productID #</span><br />
<span>Category: #= category #</span><br />
<span>Unit Price: #= unitPrice #</span>
</div>
</div>
</div>
</ItemTemplate>
</DataBinding>
</ClientSettings>
</telerik:RadListView>
</div>
</form>
</body>
</html>