⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultcs.aspx

📁 Telerik是很大的第三方软件制造商
💻 ASPX
字号:
<%@ Page Language="c#" AutoEventWireup="false" Codebehind="DefaultCS.aspx.cs" Inherits="Telerik.GridExamplesCSharp.Hierarchy.HierarchyLoadModeMixed.DefaultCS" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" Assembly="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" TagName="Header" Src="~/Common/Header.ascx" %>
<%@ Register TagPrefix="telerik" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
<%@ Register TagPrefix="telerik" TagName="Footer" Src="~/Common/Footer.ascx" %>
<%@ Register TagPrefix="radG" Namespace="Telerik.WebControls" Assembly="RadGrid" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
	<head>
		<telerik:HeadTag runat="server" ID="Headtag2"></telerik:HeadTag>
		<!-- custom head section -->
		<link href="../../Styles/default/hierarchy.css" rel="stylesheet" type="text/css"/>
        <!-- end of custom head section -->
	</head>
	<body class="BODY">
		<form runat="server" id="mainForm" method="post" style="width:100%;">
			<telerik:Header runat="server" ID="Header1" NavigationLanguage="CS"></telerik:Header>
			<!-- content start -->
				<radg:radgrid id="RadGrid1" runat="server"
					CssClass="RadGrid" Width="95%" AutoGenerateColumns="False" PageSize="3" AllowSorting="True"
					AllowMultiRowSelection="False" AllowPaging="True" GridLines="None">
					<PagerStyle Mode="NumericPages" CssClass="Pager"></PagerStyle>
					<HeaderStyle CssClass="Header"></HeaderStyle>
					<ItemStyle CssClass="Row"></ItemStyle>
					<AlternatingItemStyle CssClass="Row"></AlternatingItemStyle>
					<ClientSettings AllowExpandCollapse="True"></ClientSettings>
					<MasterTableView AllowMultiColumnSorting="True" HierarchyLoadMode="ServerOnDemand" DataKeyNames="CustomerID" Width="100%">
						<DetailTables>
							<radg:GridTableView HierarchyLoadMode="Client" DataKeyNames="OrderID" Width="100%" Gridlines="Horizontal" borderColor="#d5b96a" CssClass="RadGrid2">
								<ParentTableRelation>
									<radG:GridRelationFields DetailKeyField="CustomerID" MasterKeyField="CustomerID" />
								</ParentTableRelation>
								<DetailTables>
									<radg:GridTableView HierarchyLoadMode="Client" DataMember="OrderDetails" Width="100%" Gridlines="Horizontal" borderColor="#a7b986" CssClass="RadGrid3">
										<ParentTableRelation>
											<radG:GridRelationFields DetailKeyField="OrderID" MasterKeyField="OrderID" />
										</ParentTableRelation>
										<Columns>
											<radg:GridBoundColumn SortExpression="UnitPrice" HeaderText="Unit Price" HeaderButtonType="TextButton"
												DataField="UnitPrice"></radg:GridBoundColumn>
											<radg:GridBoundColumn SortExpression="Quantity" HeaderText="Quantity" HeaderButtonType="TextButton" DataField="Quantity"></radg:GridBoundColumn>
											<radg:GridBoundColumn SortExpression="Discount" HeaderText="Discount" HeaderButtonType="TextButton" DataField="Discount"></radg:GridBoundColumn>
										</Columns>
										<SortExpressions>
											<radg:GridSortExpression FieldName="Quantity" SortOrder="Descending"></radg:GridSortExpression>
										</SortExpressions>
										<ItemStyle BackColor="#d9e8c4"></ItemStyle>
										<HeaderStyle CssClass="Header1" Height="15px"></HeaderStyle>
										<AlternatingItemStyle BackColor="#d9e8c4"></AlternatingItemStyle>
										</radg:GridTableView>
								</DetailTables>
								<Columns>
									<radg:GridBoundColumn SortExpression="OrderID" HeaderText="OrderID" HeaderButtonType="TextButton" DataField="OrderID"></radg:GridBoundColumn>
									<radg:GridBoundColumn SortExpression="OrderDate" HeaderText="Date Ordered" HeaderButtonType="TextButton"
										DataField="OrderDate"></radg:GridBoundColumn>
									<radg:GridBoundColumn SortExpression="EmployeeID" HeaderText="EmployeeID" HeaderButtonType="TextButton"
										DataField="EmployeeID"></radg:GridBoundColumn>
								</Columns>
								<SortExpressions>
									<radg:GridSortExpression FieldName="OrderDate"></radg:GridSortExpression>
								</SortExpressions>
								<ItemStyle Height="19px" BackColor="#FCEDB0"></ItemStyle>
								<HeaderStyle CssClass="Header2" ForeColor="#ffffff" Height="15px"></HeaderStyle>
								<AlternatingItemStyle Height="19px" BackColor="#FCEDB0"></AlternatingItemStyle>
								<PagerStyle BackColor="#f4efd8"></PagerStyle>
							</radg:GridTableView>
						</DetailTables>
						<Columns>
							<radg:GridBoundColumn SortExpression="CustomerID" HeaderText="CustomerID" HeaderButtonType="TextButton"
								DataField="CustomerID"></radg:GridBoundColumn>
							<radg:GridBoundColumn SortExpression="ContactName" HeaderText="Contact Name" HeaderButtonType="TextButton"
								DataField="ContactName"></radg:GridBoundColumn>
							<radg:GridBoundColumn SortExpression="CompanyName" HeaderText="Company" HeaderButtonType="TextButton"
								DataField="CompanyName"></radg:GridBoundColumn>
						</Columns>
						<SortExpressions>
							<radg:GridSortExpression FieldName="CompanyName"></radg:GridSortExpression>
						</SortExpressions>
					</MasterTableView>
					<SelectedItemStyle ForeColor="Navy" BackColor="DarkBlue"></SelectedItemStyle>
				</radg:radgrid>
			<br />
			<asp:button id="Button1" class="button" Runat="server" Text="PostBack" Width="120px"></asp:button>
			<br/>
			<!-- content end -->
			<telerik:Footer runat="server" ID="Footer1"></telerik:Footer>
		</form>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -