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

📄 defaultcs.aspx

📁 Telerik是很大的第三方软件制造商
💻 ASPX
字号:
<%@ Page Language="c#" AutoEventWireup="false" Codebehind="DefaultCS.aspx.cs" Inherits="Telerik.GridExamplesCSharp.AJAX.ThreeLevel.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" />
		<style type="text/css">
		.MyPanelItemsStyle { font: bold 11px Tahoma; color: black; white-space:nowrap; border:buttonface 1px ridge; background-color:buttonface; }
		</style>
		<!-- 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" AllowMultiRowSelection="False" EnableAJAX="True" CssClass="RadGrid" Width="100%"
				AutoGenerateColumns="False" PageSize="3" AllowSorting="True" AllowPaging="True" ShowGroupPanel="True"
				GridLines="None">
				<grouppanel>
					<panelitemsstyle cssclass="MyPanelItemsStyle"></panelitemsstyle>
				</grouppanel>
				<MasterTableView GridLines="None" AllowMultiColumnSorting="True">
					<RowIndicatorColumn UniqueName="RowIndicator">
						<HeaderStyle Width="20px"></HeaderStyle>
					</RowIndicatorColumn>
					<SortExpressions>
						<radg:GridSortExpression FieldName="CompanyName"></radg:GridSortExpression>
					</SortExpressions>
					<Columns>
						<radG:GridTemplateColumn Groupable="False">
						 <ItemTemplate>
						  <br />
						  <br />
						  <asp:Button ID="Button1" Text="Select/Deselect Row" Width="150px" OnClick="Button1_Click" onprerender="Button1_PreRender" Runat="server"></asp:Button>
						  <br />
						  <br />
						  <asp:LinkButton ID="LinkButton1" Text="Select/Deselect Row" OnClick="LinkButton1_Click" onprerender="LinkButton1_PreRender" Runat="server"></asp:LinkButton>
						  <br />
						  <br />
						  <asp:ImageButton ID="ImageButton1" AlternateText="Select/Deselect Row" BorderWidth="0px" OnClick="ImageButton1_Click" onprerender="ImageButton1_PreRender" ImageUrl="~/Grid/Examples/Programming/WebMail/Img/mailIcon.gif" Runat="server"></asp:ImageButton>
						  <br />
						  <br />
						 </ItemTemplate>
						</radG:GridTemplateColumn>
						<radg:GridBoundColumn UniqueName="CustomerID" SortExpression="CustomerID" HeaderText="CustomerID" DataField="CustomerID"></radg:GridBoundColumn>
						<radg:GridBoundColumn UniqueName="ContactName" SortExpression="ContactName" HeaderText="Contact Name"
							DataField="ContactName"></radg:GridBoundColumn>
							
						<radg:GridBoundColumn UniqueName="CompanyName" SortExpression="CompanyName" HeaderText="Company" DataField="CompanyName"></radg:GridBoundColumn>
					</Columns>
					<DetailTables>
						<radg:GridTableView DataMember="Orders" GridLines="None">
							<ItemStyle BackColor="FloralWhite"></ItemStyle>
							<RowIndicatorColumn UniqueName="RowIndicator">
								<HeaderStyle Width="20px"></HeaderStyle>
							</RowIndicatorColumn>
							<AlternatingItemStyle BackColor="Ivory"></AlternatingItemStyle>
							<SortExpressions>
								<radg:GridSortExpression FieldName="OrderDate"></radg:GridSortExpression>
							</SortExpressions>
							<Columns>
								<radg:GridBoundColumn UniqueName="OrderID" SortExpression="OrderID" HeaderText="OrderID" DataField="OrderID"></radg:GridBoundColumn>
								<radg:GridBoundColumn UniqueName="OrderDate" SortExpression="OrderDate" HeaderText="Date Ordered" DataField="OrderDate"></radg:GridBoundColumn>
								<radg:GridBoundColumn UniqueName="EmployeeID" SortExpression="EmployeeID" HeaderText="EmployeeID" DataField="EmployeeID"></radg:GridBoundColumn>
								<radg:GridTemplateColumn UniqueName="TemplateColumn" Groupable="False">
									<HeaderStyle Width="45px"></HeaderStyle>
									<ItemTemplate>
										<asp:LinkButton id="Linkbutton1" runat="server" CommandName="Select" Text="select"></asp:LinkButton>
									</ItemTemplate>
								</radg:GridTemplateColumn>
							</Columns>
							<EditFormSettings>
								<EditColumn UniqueName="EditCommandColumn"></EditColumn>
							</EditFormSettings>
							<ExpandCollapseColumn Visible="False" UniqueName="ExpandColumn">
								<HeaderStyle Width="19px"></HeaderStyle>
							</ExpandCollapseColumn>
						</radg:GridTableView>
						<radg:GridTableView DataMember="OrderDetails" GridLines="None">
							<ItemStyle BackColor="FloralWhite"></ItemStyle>
							<RowIndicatorColumn UniqueName="RowIndicator">
								<HeaderStyle Width="20px"></HeaderStyle>
							</RowIndicatorColumn>
							<GroupByExpressions>
								<radg:GridGroupByExpression>
									<SelectFields>
										<radg:GridGroupByField FieldAlias="Quantity" FieldName="Quantity"></radg:GridGroupByField>
									</SelectFields>
									<GroupByFields>
										<radg:GridGroupByField FieldAlias="Quantity" FieldName="Quantity"></radg:GridGroupByField>
									</GroupByFields>
								</radg:GridGroupByExpression>
							</GroupByExpressions>
							<AlternatingItemStyle BackColor="Ivory"></AlternatingItemStyle>
							<SortExpressions>
								<radg:GridSortExpression SortOrder="Descending" FieldName="Quantity"></radg:GridSortExpression>
							</SortExpressions>
							<Columns>
								<radg:GridBoundColumn UniqueName="UnitPrice" SortExpression="UnitPrice" HeaderText="Unit Price" DataField="UnitPrice"></radg:GridBoundColumn>
								<radg:GridBoundColumn UniqueName="Quantity" SortExpression="Quantity" HeaderText="Quantity" DataField="Quantity"></radg:GridBoundColumn>
								<radg:GridBoundColumn UniqueName="Discount" SortExpression="Discount" HeaderText="Discount" DataField="Discount"></radg:GridBoundColumn>
							</Columns>
							<EditFormSettings>
								<EditColumn UniqueName="EditCommandColumn"></EditColumn>
							</EditFormSettings>
							<ExpandCollapseColumn Visible="False" UniqueName="ExpandColumn">
								<HeaderStyle Width="19px"></HeaderStyle>
							</ExpandCollapseColumn>
						</radg:GridTableView>
					</DetailTables>
					<EditFormSettings>
						<EditColumn UniqueName="EditCommandColumn"></EditColumn>
					</EditFormSettings>
					<ExpandCollapseColumn UniqueName="ExpandColumn">
						<HeaderStyle Width="19px"></HeaderStyle>
					</ExpandCollapseColumn>
				</MasterTableView>
				<SelectedItemStyle CssClass="SelectedRow"></SelectedItemStyle>
				<AlternatingItemStyle CssClass="AltRow"></AlternatingItemStyle>
				<GroupHeaderItemStyle BorderColor="Black" BackColor="Silver"></GroupHeaderItemStyle>
				<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
					<Resizing AllowRowResize="True" AllowColumnResize="True"></Resizing>
				</ClientSettings>
				<HeaderStyle CssClass="Header"></HeaderStyle>
				<PagerStyle CssClass="Pager" Mode="NumericPages"></PagerStyle>
				<ItemStyle CssClass="Row"></ItemStyle>
			</radg:radgrid>
			<br />
			<asp:Button ID="Button2" Text="Try PostBack!" Width="120px" CssClass="button" Runat="server"></asp:Button>
			<br />
			<br />
			<!-- content end -->
			<telerik:Footer runat="server" ID="Footer1"></telerik:Footer>
		</form>
	</body>
</html>

⌨️ 快捷键说明

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