<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</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>
        <script type="text/javascript">
            //Put your JavaScript code here.
        </script>

        <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
		<AjaxSettings>
			<telerik:AjaxSetting AjaxControlID="RadGrid1">
				<UpdatedControls>
					<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
					<telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
					<telerik:AjaxUpdatedControl ControlID="RadInputManager1" />
				</UpdatedControls>
			</telerik:AjaxSetting>
		</AjaxSettings>
	</telerik:RadAjaxManager>
	<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecorationZoneID="demo" DecoratedControls="All" EnableRoundedCorners="false" />
	<div id="demo" class="demo-container no-bg">
		<telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="false" AllowPaging="true"
			OnNeedDataSource="RadGrid1_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand"
			OnItemCreated="RadGrid1_ItemCreated" OnDeleteCommand="RadGrid1_DeleteCommand"
			OnInsertCommand="RadGrid1_InsertCommand">
			<MasterTableView DataKeyNames="ProductID" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage">
				<Columns>
					<telerik:GridEditCommandColumn ButtonType="ImageButton" />
					<telerik:GridBoundColumn DataField="ProductID" HeaderText="Product ID" ReadOnly="true"
						ForceExtractValue="Always" ConvertEmptyStringToNull="true" />
					<telerik:GridBoundColumn DataField="ProductName" HeaderText="Product Name" />
					<telerik:GridBoundColumn DataField="UnitsInStock" HeaderText="Units In Stock" />
					<telerik:GridBoundColumn DataField="UnitPrice" HeaderText="Price" DataFormatString="{0:c}" />
					<telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
						ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" />
				</Columns>
				<EditFormSettings>
					<EditColumn ButtonType="ImageButton" />
				</EditFormSettings>
			</MasterTableView>
			<PagerStyle Mode="NextPrevAndNumeric" />
			<ClientSettings>
				<ClientEvents OnRowDblClick="rowDblClick" />
			</ClientSettings>
		</telerik:RadGrid>
	</div>
	<telerik:RadInputManager runat="server" ID="RadInputManager1" Enabled="true">
		<telerik:TextBoxSetting BehaviorID="TextBoxSetting1">
		</telerik:TextBoxSetting>
		<telerik:NumericTextBoxSetting BehaviorID="NumericTextBoxSetting1" Type="Currency"
			AllowRounding="true" DecimalDigits="2">
		</telerik:NumericTextBoxSetting>
		<telerik:NumericTextBoxSetting BehaviorID="NumericTextBoxSetting2" Type="Number"
			AllowRounding="true" DecimalDigits="0" MinValue="0">
		</telerik:NumericTextBoxSetting>
	</telerik:RadInputManager>
	<telerik:RadWindowManager ID="RadWindowManager1" runat="server" />
    </form>
</body>
</html>
