<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.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></title>
	<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
	<style type="text/css">
		html, body, form {
			width: 100%;
			height: 100%;
			margin: 0;
			padding: 0;
		}
		.GridStyle {
			
			width: 1800px;
		}
		.Panel {
			
		}
	</style>
</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 ID="RadAjaxManager1" runat="server">
		</telerik:RadAjaxManager>

		<asp:Panel ID="GridPanel" runat="server" EnableViewState="true" Visible="true"
			Height="86%" Width="100%" ScrollBars="Auto" CssClass="Panel">

			<telerik:RadGrid ID="Grid1" GridLines="None" runat="server" 
				AllowAutomaticDeletes="True"
				EnableViewState="true" 
				AllowAutomaticInserts="True" 
				Skin="Outlook" 
				ShowHeader="true"
				CssClass="GridStyle" 
				AllowPaging="true" 
				PageSize="10"
				Height="100%" 
				HorizontalAlign="Center" 
				ShowGroupPanel="true" 
				OnNeedDataSource="RadGrid_NeedDataSource">
				<PagerStyle AlwaysVisible="true" />
				<ItemStyle HorizontalAlign="Center" />
				<AlternatingItemStyle HorizontalAlign="Center" />
				<MasterTableView CommandItemDisplay="Bottom" EnableViewState="true"
					NoMasterRecordsText="" EditMode="InPlace" HorizontalAlign="Center" AutoGenerateColumns="False"
					Caption="Manual Assignment" TableLayout="Auto" GroupLoadMode="Server">
					<Columns>
						<telerik:GridButtonColumn ButtonType="ImageButton" ConfirmDialogType="RadWindow"
							ConfirmText="Delete this Element?" CommandName="Delete" Text="Delete" ConfirmTitle="Delete"
							UniqueName="DeleteColumn" ItemStyle-Width="50px" HeaderStyle-Width="50px">
							<ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" />
						</telerik:GridButtonColumn>
						<telerik:GridTemplateColumn ItemStyle-Width="125px" UniqueName="ManElementTypeCol"
							HeaderText="Element Type" HeaderStyle-Width="125px">
							<ItemTemplate>
								<telerik:RadComboBox ID="ddlElementTypeEdit" runat="server" AutoPostBack="true"
									DataTextField="Description" DataValueField="ID" Width="110px" EnableViewState="false" Height="150"
									NoWrap="true">
								</telerik:RadComboBox>
							</ItemTemplate>
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn ItemStyle-Width="225px" UniqueName="ManCOIDColumn" HeaderText="Element Location" HeaderStyle-Width="225px">
							<ItemTemplate>

								<telerik:RadComboBox ID="ddlCOIDEdit" runat="server" AutoPostBack="true" Width="200px" Height="150"
									EnableViewState="false" NoWrap="true">
								</telerik:RadComboBox>
							</ItemTemplate>
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn ItemStyle-Width="225px" UniqueName="ManElementColumn"
							HeaderText="Element" HeaderStyle-Width="225px">
							<ItemTemplate>
								<telerik:RadComboBox ID="ddlElementEdit" runat="server" AutoPostBack="true" Width="200px" Height="150"
									EnableViewState="false" NoWrap="true"
									EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true">
								</telerik:RadComboBox>

							</ItemTemplate>
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn ItemStyle-Width="125px" UniqueName="ManStatusColumn"
							HeaderText="Status" HeaderStyle-Width="125px">
							<ItemTemplate>
								<telerik:RadComboBox ID="ddlStatusEdit" runat="server" AutoPostBack="true"
									DataTextField="Description" DataValueField="ID" Width="110px" EnableViewState="false">
								</telerik:RadComboBox>
							</ItemTemplate>
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn HeaderText="Linecard Sequence" ItemStyle-Width="150px"
							UniqueName="ManLinecardSeqColumn" HeaderStyle-Width="150px">
							<ItemTemplate>
								<telerik:RadComboBox ID="ddlManLinecardSeq" runat="server" EnableViewState="true" AppendDataBoundItems="true"
									Width="100px" AutoPostBack="true">
								</telerik:RadComboBox>
							</ItemTemplate>
						</telerik:GridTemplateColumn>
						<telerik:GridButtonColumn ButtonType="PushButton" UniqueName="ManViewButton" Text="View" CommandName="ViewElement"
							ItemStyle-Width="100px" HeaderStyle-Width="50px">
						</telerik:GridButtonColumn>
						<telerik:GridButtonColumn ButtonType="PushButton" UniqueName="ManMapButton" Text="Find on Map" CommandName="FindOnMap" ItemStyle-Width="100px" HeaderStyle-Width="50px">
						</telerik:GridButtonColumn>
						<telerik:GridTemplateColumn ItemStyle-Width="50px" UniqueName="ManHiddenListOrder" Visible="false">
							<ItemTemplate>
								<asp:Label ID="lblManListOrder" runat="server">
								</asp:Label>
							</ItemTemplate>
						</telerik:GridTemplateColumn>
					</Columns>
					<CommandItemTemplate>
						<asp:Button ID="Button1" Text="Add new item" runat="server"></asp:Button>
						<asp:Button ID="AddLinecard" Text="Add new linecard" runat="server"></asp:Button>
					</CommandItemTemplate>
				</MasterTableView>
				<ClientSettings>
				</ClientSettings>

			</telerik:RadGrid>
		</asp:Panel>
	</form>
</body>
</html>
