📄 defaultvb.aspx
字号:
<%@ Register TagPrefix="uc1" TagName="ColorPicker" Src="../../../../Common/ColorPicker.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="DefaultVB.aspx.vb" Inherits="Telerik.GridExamplesVBNET.Programming.Appearance.DefaultVB" %>
<%@ 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 -->
<style type="text/css">
.RadGrid a { FONT: bold 11px Tahoma }
.RadGrid th { FONT: bold 11px Tahoma }
.RadGrid td { FONT: 11px Tahoma }
.PanelItemsStyle { font: bold 11px Tahoma; white-space:nowrap; }
</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="VB"></telerik:Header>
<!-- content start -->
<div class="module" style="WIDTH:92%;HEIGHT:80px">
<table id="Table1" cellspacing="1" cellpadding="1" border="0" width="100%">
<tr>
<td colspan="2"><b>Style:</b><br/><hr/></td>
<td></td>
<td colspan="2"><b>Apply to:</b><br/><hr/></td>
<td rowspan="3">
<asp:Button CssClass="button" id="btnApply" runat="server" Text="Apply"></asp:Button></td>
</tr>
<tr>
<td style="HEIGHT: 23px">Fore color</td>
<td style="HEIGHT: 23px">
<uc1:ColorPicker id="ColorPicker1" runat="server"></uc1:ColorPicker></td>
<td style="HEIGHT: 23px">
</td>
<td style="HEIGHT: 23px">Table:</td>
<td style="HEIGHT: 23px">
<asp:DropDownList id="DropDownList1" runat="server" width="160px">
<asp:ListItem Value="Customers">Customers</asp:ListItem>
<asp:ListItem Value="OrderDetails">Order Details</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td>Back color</td>
<td>
<uc1:ColorPicker id="ColorPicker2" runat="server"></uc1:ColorPicker></td>
<td></td>
<td>Element:</td>
<td>
<asp:DropDownList id="DropDownList4" runat="server" width="160px">
<asp:ListItem Value="ItemStyle">ItemStyle</asp:ListItem>
<asp:ListItem Value="AlternatingItemStyle">AlternatingItemStyle</asp:ListItem>
<asp:ListItem Value="HeaderStyle">HeaderStyle</asp:ListItem>
<asp:ListItem Value="GroupHeaderItemStyle">GroupHeaderItemStyle</asp:ListItem>
</asp:DropDownList></td>
</tr>
</table>
</div>
<br />
<radg:radgrid id="RadGrid1" Width="95%" PageSize="15" AllowSorting="True" AllowPaging="True"
runat="server" CssClass="RadGrid" AllowMultiRowSelection="False" ShowGroupPanel="True">
<PagerStyle Mode="NumericPages"></PagerStyle>
<grouppanel>
<panelitemsstyle cssclass="PanelItemsStyle" cellspacing="0" cellpadding="0"></panelitemsstyle>
</grouppanel>
<MasterTableView DataMember="Customers" Width="100%">
<DetailTables>
<radg:GridTableView DataMember="OrderDetails" PageSize="5">
<GroupByExpressions>
<radg:GridGroupByExpression>
<SelectFields>
<radg:GridGroupByField FieldAlias="Price" FormatString="Total: <strong>{0:0.00}</strong>" Aggregate="Sum"
FieldName="Price"></radg:GridGroupByField>
</SelectFields>
<GroupByFields>
<radg:GridGroupByField FieldAlias="OrderID" FieldName="OrderID"></radg:GridGroupByField>
</GroupByFields>
</radg:GridGroupByExpression>
</GroupByExpressions>
</radg:GridTableView>
</DetailTables>
</MasterTableView>
<GroupHeaderItemStyle BorderColor="Black" BackColor="Silver"></GroupHeaderItemStyle>
<ClientSettings AllowColumnsReorder="True">
<Resizing AllowRowResize="True" ResizeGridOnColumnResize="True" AllowColumnResize="True"></Resizing>
</ClientSettings>
</radg:radgrid>
<br />
<asp:Button CssClass="button" id="Button1" runat="server" Text="PostBack"></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 + -