or
|
|
<%@ 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();}| private void AddGridButtonColumn(string name, string uniqueName, bool sortable) |
| { |
| //remove first if grid has a column with that name |
| RemoveGridColumn(uniqueName); |
| // Add a new column with the specified name |
| GridButtonColumn gridButtonColumn1 = new GridButtonColumn(); |
| gridButtonColumn1.HeaderText = name; |
| if (sortable) |
| gridButtonColumn1.SortExpression = uniqueName; |
| gridButtonColumn1.UniqueName = uniqueName; |
| gridButtonColumn1.DataTextField = uniqueName; |
| RadFileExplorer_SharedFolderBrowser.Grid.Columns.Add(gridButtonColumn1); |
| } |
but no button appears in grid.
any solution?

<div class="content1" style="margin:40px"> <asp:UpdateProgress ID="UpdateProgress1" runat="server" Visible="true"> <ProgressTemplate> <div id="progress" class="progress"> <img src="../Images/Progress/indicator_big.gif" /> <br /><br /> Please Wait </div> </ProgressTemplate> </asp:UpdateProgress> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:HiddenField ID="scrollOkay" runat="server" /> <%-- If set true then the tree's scrollIntoView function will be used. --%> <asp:Panel ID="panelPath" runat="server" Width="720px" style="padding:5px"> Path: <asp:Label ID="labelPath" runat="server" Text="" style="font-weight:bold" /> </asp:Panel> <div style="height:15px"></div> <asp:Panel ID="panelTree" runat="server" Width="350" Height="500" BorderColor="DarkGray" BorderStyle="Groove" BorderWidth="1" style="float:left"> <telerik:RadTreeView ID="treeViewMain" runat="server" ExpandAnimation-Duration="5" ShowLineImages="true" OnNodeExpand="treeViewMain_NodeExpand" OnNodeClick="treeViewMain_NodeClick" MultipleSelect="false" AllowNodeEditing="false" EnableDragAndDrop="true" OnNodeDrop="treeViewMain_NodeDrop" Height="500px" Width="350px" style="background-color:#F0F8FF" /> </asp:Panel> <div style="width:30px; float:left"></div> <asp:Panel ID="panelFields" runat="server" Width="340" Enabled="false" BorderColor="DarkGray" BorderStyle="Solid" BorderWidth="1" style="float:left; padding:10px"> <asp:Table ID="tableFields" runat="server" CellSpacing="5"> <asp:TableRow> <asp:TableCell HorizontalAlign="Right" style="padding-right:7px" Text="Type:" /> <asp:TableCell> <asp:DropDownList ID="dropDownListType" runat="server" Width="240px" AutoPostBack="true" OnSelectedIndexChanged="dropDownListType_SelectedIndexChanged" /> </asp:TableCell> </asp:TableRow> <asp:TableRow> <asp:TableCell HorizontalAlign="Right" style="padding-right:7px" Text="SubType:" /> <asp:TableCell> <asp:DropDownList ID="dropDownListSubType" runat="server" Width="240px" AutoPostBack="true" OnSelectedIndexChanged="dropDownListSubType_SelectedIndexChanged" /> </asp:TableCell> </asp:TableRow> <asp:TableRow> <asp:TableCell HorizontalAlign="Right" style="padding-right:7px" Text="Description:" /> <asp:TableCell> <asp:TextBox ID="textBoxDescription" runat="server" Width="236px" AutoPostBack="true" OnTextChanged="textBoxDescription_TextChanged" /> </asp:TableCell> </asp:TableRow> <asp:TableRow> <asp:TableCell HorizontalAlign="Right" style="padding-right:7px" Text="Equip No.:" /> <asp:TableCell> <asp:TextBox ID="textBoxEquipNo" runat="server" Width="50" style="text-align:right; padding-right:1px" AutoPostBack="true" OnTextChanged="textBoxEquipNo_TextChanged" /> </asp:TableCell> </asp:TableRow> <asp:TableRow> <asp:TableCell HorizontalAlign="Right" style="padding-right:7px" Text="MIMS:" /> <asp:TableCell> <asp:TextBox ID="textBoxMims" runat="server" Width="50" style="text-align:right; padding-right:1px" AutoPostBack="true" OnTextChanged="textBoxMims_TextChanged" /> </asp:TableCell> </asp:TableRow> <asp:TableRow> <asp:TableCell HorizontalAlign="Right" style="padding-right:7px" Text="Quantity:" /> <asp:TableCell> <asp:TextBox ID="textBoxQuantity" runat="server" Width="50" style="text-align:right; padding-right:1px" AutoPostBack="true" OnTextChanged="textBoxQuantity_TextChanged" /> </asp:TableCell> </asp:TableRow> </asp:Table> </asp:Panel> </ContentTemplate> </asp:UpdatePanel> <div style="position:absolute; left:275px; top:762px; font-size:12px"> <asp:LinkButton ID="linkButtonEquipSubtypeEditor" runat="server" Text="Equipment Subtypes" PostBackUrl="~/Editors/equipSubtypeEditor.aspx" style="color:Blue" /> </div></div>The requirement is to produce a multi-chart with stacked bar and line series. The line series will be for part periods only
a) One series for full date range scale
b) One series for past period of date range scale
c) One series for future period of date range scale