or
<ChartTitle>
<Appearance Dimensions-Margins="4%; 10px; 14px; 8%" Position-AlignedPosition="TopLeft">
</Appearance>
<TextBlock Text="">
<Appearance TextProperties-Font="Arial, 18px" TextProperties-Color="#000000">
</Appearance>
</TextBlock>
</ChartTitle><Appearance Dimensions-Margins="0px; 0px; 0px; 0px" Position-AlignedPosition="TopLeft"></Appearance>
|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/shared/templates/CGPTest.master" AutoEventWireup="true" CodeFile="text.aspx.cs" Inherits="design_text" %><asp:Content ID="Content3" ContentPlaceHolderID="cpPageBody" Runat="Server"> <telerik:RadWindowManager ID="rwmCustom" runat="server"></telerik:RadWindowManager> <telerik:RadFormDecorator ID="rfdCustom" runat="server" DecoratedControls="All" EnableRoundedCorners="true" /> <h2>Step 2 : Your order details</h2> <fieldset> <ul> <li>Pick type</li> <li><telerik:RadComboBox ID="rcbPickType" runat="server" Width="250px" OnSelectedIndexChanged="rcbPickType_SelectedIndexChanged" AutoPostBack="true" EnableScreenBoundaryDetection="false" ExpandDirection="Down" /></li> <li>Pick gauge</li> <li><telerik:RadComboBox ID="rcbGauge" runat="server" Width="60px" EnableScreenBoundaryDetection="false" ExpandDirection="Down" /></li> <li>Your Name</li> <li><asp:TextBox ID="tbName" runat="server" MaxLength="255" width="250px" /></li> <li>Your Email</li> <li><asp:TextBox ID="tbEmail" runat="server" MaxLength="255" width="250px" /></li> <li>Extra instructions</li> <li><asp:TextBox ID="tbExtraInfo" runat="server" TextMode="MultiLine" Rows="4" MaxLength="2500" width="250px" /></li> <li> </li> </ul> </fieldset></asp:Content>protected void Page_Load(object sender, EventArgs e){ // Catch a null order and redirect to the start page CustomOrder currentOrder = CustomOrder.GetCurrentOrder(); if (currentOrder == null) currentOrder = new CustomOrder(DesignTypes.Text); if (!Page.IsPostBack) { // Bind PickTypes IEnumerable<XElement> pickTypes = CGP.ShoppingCart.Catalog.GetPickTypes(currentOrder.DesignType); foreach (XElement pickType in pickTypes) { RadComboBoxItem item = new RadComboBoxItem(pickType.Attribute("name").Value + " - " + pickType.Attribute("colour").Value, pickType.Attribute("name").Value + " - " + pickType.Attribute("colour").Value); item.ImageUrl = pickType.Attribute("imageThumbURL").Value; rcbPickType.Items.Add(item); } // Bind gauges BindGauges(); }}protected void BindGauges(){ // Set gauge items in drop down rcbGauge.Items.Clear(); IEnumerable<XElement> gauges = CGP.ShoppingCart.Catalog.GetGaugesByPickType((rcbPickType.SelectedValue.Split('-')[0]).Trim()); foreach (XElement gauge in gauges) { rcbGauge.Items.Add(new Telerik.Web.UI.RadComboBoxItem(gauge.Attribute("name").Value)); }}protected void rcbPickType_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e){ BindGauges();}