📄 defaultcs.aspx
字号:
<%@ Page AutoEventWireup="false" CodeBehind="DefaultCS.aspx.cs" Inherits="Telerik.ChartExamplesCS.SeriesItems.DefaultCS" Language="c#" %>
<%@ 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="radc" Namespace="Telerik.WebControls" Assembly="RadChart" %>
<!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="Headtag1"></telerik:HeadTag>
<!-- custom head section -->
<style type="text/css">
table.center {margin-left:auto; margin-right:auto;}
</style>
<!-- end of custom head section -->
</head>
<body class="BODY">
<form runat="server" id="mainForm" method="post" style="WIDTH:100%">
<telerik:Header Tab="Config" runat="server" ID="Header1" NavigationLanguage="C#" NavigationControl="~/Chart/Common/ConfigNavigation.ascx"></telerik:Header>
<!-- content start -->
<table style="width: 94%; border: 0px;">
<tr>
<td valign="top">
<div style="OVERFLOW: auto; WIDTH: 400px; HEIGHT: 360px"><radc:radchart id="RadChart1" Margins-Right="96px" Margins-Top="50px" Margins-Left="20px" Margins-Bottom="26px" Runat="server" LicenseFile="~\RadControls\LicenseFile.xml">
<Background MainColor="242, 242, 242" SecondColor="White"></Background>
<PlotArea MainColor="224, 224, 224" SecondColor="Gray"></PlotArea>
<Legend>
<Background MainColor="LightGray" Corners-BottomLeft="Round" Corners-TopRight="Round" Corners-BottomRight="Round" Corners-RoundSize="3" Corners-TopLeft="Round" BorderColor="64, 64, 64" GradientFocus="0.5"></Background>
</Legend>
<YAxis MaxValue="80" MinValue="-100" Visible="False" MaxItemsCount="15" Step="20"></YAxis>
<Title1 Text="r.a.d chart title">
<Background MainColor="LightGray" Corners-BottomLeft="Round" Corners-TopRight="Round" Corners-BottomRight="Round" Corners-RoundSize="3" Corners-TopLeft="Round" BorderColor="64, 64, 64"></Background>
</Title1>
<XAxis DefaultItemFont="Arial, 8.25pt" ShowMarks="False" MaxValue="4" MinValue="1" Step="1"></XAxis>
<ChartSeriesCollection>
<radc:ChartSeries Name="Series 1">
<Items>
<radc:ChartSeriesItem Label="a" YValue="-90"></radc:ChartSeriesItem>
<radc:ChartSeriesItem Label="B" YValue="14"></radc:ChartSeriesItem>
<radc:ChartSeriesItem Label="C" YValue="66"></radc:ChartSeriesItem>
<radc:ChartSeriesItem Label="D" YValue="76"></radc:ChartSeriesItem>
</Items>
<Appearance MainColor="199, 243, 178" SecondColor="17, 147, 7" BorderColor="DimGray"></Appearance>
<LabelAppearance TextFont="Arial, 8.25pt, style=Bold">
<Background MainColor="100, 243, 243, 243"></Background>
</LabelAppearance>
</radc:ChartSeries>
<radc:ChartSeries Name="Series 2">
<Items>
<radc:ChartSeriesItem Label="V" YValue="53"></radc:ChartSeriesItem>
<radc:ChartSeriesItem Label="W" YValue="10"></radc:ChartSeriesItem>
<radc:ChartSeriesItem Label="X" YValue="42"></radc:ChartSeriesItem>
<radc:ChartSeriesItem Label="Y" YValue="-64"></radc:ChartSeriesItem>
</Items>
<Appearance MainColor="253, 226, 0" SecondColor="255, 156, 0" BorderColor="DimGray"></Appearance>
<LabelAppearance TextFont="Arial, 8.25pt, style=Bold">
<Background MainColor="100, 243, 243, 243"></Background>
</LabelAppearance>
</radc:ChartSeries>
</ChartSeriesCollection>
</radc:radchart></div>
</td>
<td valign="top" align="right"><div class="module" style="WIDTH: 301px; HEIGHT: 190px">
<table style="height: 200px;">
<tr>
<td colspan="2"><b>Customize Series Items</b></td>
</tr>
<tr>
<td><asp:label id="Label1" runat="server">Series:</asp:label></td>
<td><asp:dropdownlist id="ddlSeries" runat="server" Width="140" AutoPostBack="True"></asp:dropdownlist></td>
</tr>
<tr>
<td><asp:label id="Label2" runat="server">Item:</asp:label></td>
<td><asp:dropdownlist id="ddlItems" runat="server" Width="140" AutoPostBack="True"></asp:dropdownlist></td>
</tr>
<tr>
<td><asp:label id="Label3" runat="server">Value:</asp:label></td>
<td style="WIDTH: 200px; HEIGHT: 22px"><asp:textbox class="textfield" id="tbValue" runat="server"></asp:textbox></td>
</tr>
<tr>
<td><asp:label id="Label4" runat="server">Label:</asp:label></td>
<td><asp:textbox class="textfield" id="tbLabel" runat="server"></asp:textbox></td>
</tr>
<tr>
<td colspan="2"><asp:button id="Button1" style="BORDER-RIGHT: #33cc00 2px solid; BORDER-TOP: #33cc00 2px solid; BORDER-LEFT: #33cc00 2px solid; BORDER-BOTTOM: #33cc00 2px solid" runat="server" Width="264px" CssClass="button" Text="Apply settings"></asp:button></td>
</tr>
<tr>
<td><asp:button id="Button2" runat="server" Width="130px" CssClass="button" Text="Add new item"></asp:button></td>
<td><asp:button id="Button3" runat="server" Width="130px" CssClass="button" Text="Delete selected"></asp:button></td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:Label id="lblIncorrectSettings" runat="server" ForeColor="Red" Visible="False">Incorrect value(s)!</asp:Label>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<!-- content end -->
<telerik:Footer runat="server" ID="Footer1"></telerik:Footer>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -