<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadGrid with HyperLink Column.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title>RadGrid with HyperLink Column</title>
	<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
	<form id="form1" runat="server">
		<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
			<Scripts>
				<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
				<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
				<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
			</Scripts>
		</telerik:RadScriptManager>

		<%-- <telerik:RadSkinManager runat="server" ShowChooser="true"></telerik:RadSkinManager>--%>
		<script type="text/javascript">
			//Put your JavaScript code here.
		</script>
		<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
			<AjaxSettings>
				<telerik:AjaxSetting AjaxControlID="RadGrid1">
					<UpdatedControls>
						<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
					</UpdatedControls>
				</telerik:AjaxSetting>
			</AjaxSettings>
		</telerik:RadAjaxManager>
		<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
		</telerik:RadAjaxLoadingPanel>
		<div>
			<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" AllowPaging="True" Width="800px"
				runat="server" AutoGenerateColumns="False" AllowSorting="True" PageSize="5" AllowMultiRowSelection="true">
				<MasterTableView>
					<Columns>						
						<telerik:GridBoundColumn UniqueName="ContactTitle"
							SortExpression="ContactTitle" HeaderText="Bound<br/>Column" DataField="ContactTitle">
						</telerik:GridBoundColumn>
						<telerik:GridHyperLinkColumn DataTextFormatString="Show me the best car brand in the world"
							DataNavigateUrlFields="CompanyName" UniqueName="CompanyName" DataNavigateUrlFormatString="http://www.bmw.com/com/en/"
							HeaderText="HyperLink<br/>Column" DataTextField="CompanyName">
						</telerik:GridHyperLinkColumn>
					</Columns>
				</MasterTableView>
				<ClientSettings>
					<Selecting AllowRowSelect="true"></Selecting>
				</ClientSettings>
			</telerik:RadGrid>
			<asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
				ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM Customers" runat="server"></asp:SqlDataSource>
		</div>
	</form>
</body>
</html>
