<%@ Page CodeFile="DefaultVB.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="Telerik.Web.Examples.Timeline.DeclarativeDataSource.DefaultVB" %>
<%@ 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 href="styles.css" rel="stylesheet" />
</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-wide" runat="server">
<telerik:RadTimeline runat="server" ID="TimelineOrders"
DataSourceID="SqlDataSourceEmployees"
DataTitleField="FullName"
DataSubtitleField="Title"
Orientation="Vertical"
DataKeyNames="TitleOfCourtesy,City,Country,Region"
DataDateField="HireDate"
OnItemDataBound="TimelineOrders_ItemDataBound">
<EventTemplate>
<div class="k-card-header">
<h5 class="k-card-title">#=data.TitleOfCourtesy# #=data.FullName#</h5>
<h6 class="k-card-subtitle">#=data.Title#</h6>
</div>
<div class="k-card-body">
<div class="k-card-description">
<p>
#=data.City#, #=data.Country#
#if(data.Region){ #
, #=data.Region#
#}#
</p>
# var images = data.images;
if(images && images.length > 0) { #
<img src="#=images[0].src#" class="k-card-image">
# } #
</div>
</div>
</EventTemplate>
<WebServiceClientDataSource>
<SortExpressions>
<telerik:ClientDataSourceSortExpression FieldName="HireDate" SortOrder="Desc" />
</SortExpressions>
<Schema>
<Model>
<telerik:ClientDataSourceModelField DataType="Date" FieldName="HireDate" />
</Model>
</Schema>
</WebServiceClientDataSource>
</telerik:RadTimeline>
<asp:SqlDataSource ID="SqlDataSourceEmployees" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommand="Select [EmployeeID], [FirstName] + ' ' + [LastName] as [FullName],[LastName], [FirstName], [Title], [TitleOfCourtesy], [BirthDate], [HireDate], [Address], [City], [Region], [PostalCode], [Country], [HomePhone], [Extension], [Photo], [Notes], [ReportsTo], [PhotoPath] from Employees"
runat="server"></asp:SqlDataSource>
</div>
</form>
</body>
</html>