Really simple Combobox output question

8 posts, 1 answers
  1. Steven
    Steven avatar
    7 posts
    Member since:
    Jun 2011

    Posted 10 Nov 2011 Link to this post

    Ive created about a dozen options in the combobox build option. All id like to do is get the users selection from that list to be inserted into an existing standard asp textbox.

    How do I do this please?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Nov 2011 Link to this post

    Hello Steven,

    You can try the following javascript to set SelectedItem of RadComboBox  as TextBox text.

    JS:
    <script type="text/javascript">
     function OnClientClick()
      {
         var combo= $find("<%=RadComboBox1.ClientID %>");
         var txt = document.getElementById("txt");
         var combotxt = combo.get_text();
         txt.innerText = combotxt ;
      }
    </script>

    Thanks,
    Princy.
  3. Steven
    Steven avatar
    7 posts
    Member since:
    Jun 2011

    Posted 17 Nov 2011 Link to this post

    HI and thanks for the reply, ive inserted the snippet you kindly supplied and im still not getting any success.

    Would someone mind looking over the attached code and let me know what im doing incorrectly please?

    Thanks in advance

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuotationInfo.aspx.cs" Inherits="Control_Quotations_QuotationInfo" %>
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <head id="Head1" runat="server">
        <title>Quotation</title>
        <style type="text/css">
            #GridQuotationsPanel
            {
                height: 100%;
            }
        </style>
        <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate" />
        <meta http-equiv="Pragma" content="no-cache" />
     
        <script src="../../JavaScript/PopUps.js" type="text/javascript"></script>
        <script src="../../JavaScript/CustSearch.js" type="text/javascript"></script>
     
    </head>
    <body>
     
        <script type="text/javascript" language="javascript">
            function Access(ID) {
     
                if (ID == "0") {
                    alert("Please save the record first");
                }
                else {
                    openNewWinFixed("../General/quotpart_BOM.aspx?cid=" + document.getElementById("hdnCustomerId").value + "&id=" + ID, "ImapSettings", "600", "800");
                }
                return;
            }
     
            function GetCustomer() {
     
                openNewWinFixed("../General/CustomerList.aspx", "Customer", "500", "600");
                 
            }
     
            function ProductInfo(qid, pid) {
     
                var id = document.getElementById("hdnCustomerId").value + "|" + document.getElementById("txtCode").value;
                openNewWin('QuotationTree.aspx?qid=' + qid + '&pid=' + pid + "&cid=" + id, 'quotation', 600, 950);
            }
     
            function OpenDetail_Quotation() {
                var qid = document.getElementById("hdnUniqueId").value;
                if (qid > 0)
                    openNewWin('Quotation_BOM.aspx?qid=' + qid, 'Quotation' + qid, 600, 950);
                else
                    alert("Please save the record first");
            }
            function SetCustomer(sender, eventArgs) {
                document.getElementById("hdnCustomerId").value = sender.get_value();
                document.getElementById('btnRefresh').onclick();
            }
        </script>
     
        <script type="text/javascript">
            function OnClientClick() {
                var combo = $find("<%=RadComboBox1.ClientID %>");
                var txt = document.getElementById("txt");
                var combotxt = combo.get_text();
                txt.innerText = combotxt;
            }
    </script>
     
        <form id="form1" runat="server">
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
        </telerik:RadStyleSheetManager>
        <telerik:RadScriptManager ID="ScriptManger1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableOutsideScripts="true">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="LeftTree">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl LoadingPanelID="loading" ControlID="mainPanel" />
                        <telerik:AjaxUpdatedControl ControlID="mainFrame" />
                        <telerik:AjaxUpdatedControl ControlID="lblTitle" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnSave">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl LoadingPanelID="loading" ControlID="mainPanel" />
                        <telerik:AjaxUpdatedControl ControlID="LeftTree" />
                        <telerik:AjaxUpdatedControl ControlID="lblPath" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnAdd">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl LoadingPanelID="loading" ControlID="mainPanel" />
                        <telerik:AjaxUpdatedControl ControlID="LeftTree" />
                        <telerik:AjaxUpdatedControl ControlID="lblPath" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnRefresh">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl LoadingPanelID="loading" ControlID="mainPanel" />
                        <telerik:AjaxUpdatedControl ControlID="lblCustomerName" />
                        <telerik:AjaxUpdatedControl ControlID="lblCustomerAddress" />
                        <telerik:AjaxUpdatedControl ControlID="lblCustomerEmail" />
                        <telerik:AjaxUpdatedControl ControlID="lblCustomerPhone" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnCalculate">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl LoadingPanelID="loading" ControlID="mainPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnDeliveryCalculate">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl LoadingPanelID="loading" ControlID="mainPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnQuotation_Refresh">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl LoadingPanelID="loading" ControlID="mainPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="GridQuotations">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl LoadingPanelID="loading" ControlID="mainPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="loading" HorizontalAlign="Center" MinDisplayTime="500"
            Transparency="30" runat="server">
            <div id="divLoader" class="loading">
            </div>
        </telerik:RadAjaxLoadingPanel>
        <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td valign="top">
                    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td valign="top" class="main-header" height="80">
                                <table width="100%" border="0px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <table width="100%" border="0px" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td>
                                                        <table border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td class="quotation_logo" valign="middle">
                                                                    Quotation
                                                                    <asp:HiddenField ID="hdnCustomerId" runat="server" Value="0" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td valign="top">
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="pop_up_sub_header" valign="middle">
                                            <table border="0" cellspacing="0" cellpadding="0" width="100%" height="27px">
                                                <tr>
                                                    <td width="95%" class="Pdding_left">
                                                        <asp:Label ID="lblPath" runat="server"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <a href="#" onclick="javascript:self.close();" class="close_btn">Close</a>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" height="100%">
                                <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td valign="top" class="pop-up-left-nav">
                                            <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td class="heading2">
                                                        Quotation
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td height="5">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top">
                                                        <!-- Left Nav Starts Here-->
                                                        <!-- Left Ends Starts Here-->
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" height="100%" class="left_tree_pad">
                                                        <telerik:RadTreeView ID="LeftTree" runat="server" AutoPostBack="True" OnNodeClick="LeftTree_NodeClick">
                                                            <Nodes>
                                                                <telerik:RadTreeNode Text="Quotation" Expanded="true" ImageUrl="../../Images/root.gif"
                                                                    Value="Quotation">
                                                                    <Nodes>
                                                                        <telerik:RadTreeNode Text="Information" ImageUrl="../../Images/child.gif" Value="Information">
                                                                        </telerik:RadTreeNode>
                                                                        <telerik:RadTreeNode Text="Documents" ImageUrl="../../Images/child.gif" Value="Documents">
                                                                        </telerik:RadTreeNode>
                                                                    </Nodes>
                                                                </telerik:RadTreeNode>
                                                            </Nodes>
                                                        </telerik:RadTreeView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="bottom" class="footer-bar">
                                                          
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td class="pop-up-right-nav" valign="top" height="100%">
                                            <table width="100%" height="100%" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td valign="top" height="100%">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
                                                            <tr>
                                                                <td class="heading2">
                                                                    <asp:Label ID="lblTitle" runat="server" Text="Quotation"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td valign="top" style="height: 0px; font-size: 0;" height="100%">
                                                                    <asp:Panel ID="mainPanel" runat="server">
                                                                        <asp:HiddenField ID="hdnUniqueId" runat="server" Value="0" />
                                                                        <table width="100%" height="100%" cellpadding="0" cellspacing="0">
                                                                            <tr>
                                                                                <td valign="top" height="100%">
                                                                                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                                                                                        <tr>
                                                                                            <td valign="top" height="100%">
                                                                                                <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                                                                                                    <tr>
                                                                                                        <td class="popup-inner-heading2" height="20px">
                                                                                                            <asp:Button ID="btnSave" runat="server" CssClass="save" ValidationGroup="save" Text="Save"
                                                                                                                OnClick="btnSave_Click" />
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td valign="top">
                                                                                                            <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                                                                                                                <tr>
                                                                                                                    <td colspan="13">
                                                                                                                        <table width="100%" class="redbar" id="tbMsg" visible="false" runat="server" border="0"
                                                                                                                            align="left" cellpadding="0" cellspacing="0">
                                                                                                                            <tr>
                                                                                                                                <td width="12">
                                                                                                                                         
                                                                                                                                </td>
                                                                                                                                <td width="100%" valign="middle">
                                                                                                                                    <asp:Label ID="lblMsg" runat="server"></asp:Label>
                                                                                                                                </td>
                                                                                                                            </tr>
                                                                                                                        </table>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td width="1%" height="10">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="13" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="7%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="20%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="5" height="1" />
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="12" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="5" height="1" />
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="12" height="1" />
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="12" height="1" />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        Code
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <asp:TextBox ID="txtCode" runat="server" MaxLength="50"  Width="80%"></asp:TextBox>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <asp:RequiredFieldValidator ID="reqCode" runat="server" SetFocusOnError="true" ControlToValidate="txtCode"
                                                                                                                            Display="Dynamic" ErrorMessage="<img src="../../Images/alert.gif" />"
                                                                                                                            ToolTip="Enter Quote ID" ValidationGroup="save"></asp:RequiredFieldValidator>
                                                                                                                        <asp:RegularExpressionValidator ID="regCode" runat="server" SetFocusOnError="true"
                                                                                                                            ControlToValidate="txtCode" Display="Dynamic" ErrorMessage="<img src="../../Images/alert.gif" />"
                                                                                                                            ToolTip="Special characters not allowed" ValidationGroup="save" ValidationExpression="^([a-zA-Z0-9\s\.]+)$"></asp:RegularExpressionValidator>
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        Customer
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                                                                                                                            <tr>
                                                                                                                                <td width="100%" valign="top">
                                                                                                                                    <%--<asp:TextBox ID="txtCustomer" onkeypress="return false;" runat="server" MaxLength="100"></asp:TextBox>--%>
                                                                                                                                    <telerik:RadComboBox ID="cbxCustName" runat="server" Width="210px"
                                                                                                                                        Height="200px" Skin="Office2007" OnItemsRequested="cbxCustName_ItemsRequested"
                                                                                                                                        EmptyMessage="Select a Company" EnableLoadOnDemand="true" ShowMoreResultsBox="true"
                                                                                                                                        EnableVirtualScrolling="true" MaxLength="100" OnClientBlur="SetCustomer" >
                                                                                                                                    </telerik:RadComboBox>
                                                                                                                                </td>
                                                                                                                                <td align="left" valign="middle">
                                                                                                                                     
                                                                                                                                    <img id="btnCustomer" runat="server" onclick="return GetCustomer();" src="../../App_Themes/GPC/images/chikku.gif"
                                                                                                                                        width="22" alt="Select Customer" height="21" />
                                                                                                                                   <%--  
                                                                                                                                    <img id="btnCustLookup" runat="server" onclick="btnCustLookup_click" src="../../App_Themes/GPC/images/Assign_User.gif"
                                                                                                                                        width="22" alt="Lookup Customer" height="21" />--%>
                                                                                                                                </td>
                                                                                                                            </tr>
                                                                                                                        </table>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <asp:RequiredFieldValidator ID="reqCustomer" runat="server" SetFocusOnError="true"
                                                                                                                            ControlToValidate="cbxCustName" Display="Dynamic" ErrorMessage="<img src="../../Images/alert.gif" />"
                                                                                                                            ToolTip="Select Customer" ValidationGroup="save"></asp:RequiredFieldValidator>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td width="1%" height="10">
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="0%">
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td class="popup-inner-heading" colspan="16">
                                                                                                                        Information
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td width="1%" height="10">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td width="1%" colspan="2">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="0%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td colspan="3" valign="top">
                                                                                                                        <strong style="margin-bottom: 5px; display: block">
                                                                                                                            <asp:Label ID="lblCustomerName" runat="server"></asp:Label></strong>
                                                                                                                        <asp:Label ID="lblCustomerAddress" runat="server"></asp:Label><br />
                                                                                                                        <asp:Label ID="lblCustomerEmail" runat="server"></asp:Label><br />
                                                                                                                        <asp:Label ID="lblCustomerPhone" runat="server"></asp:Label>
                                                                                                                    </td>
                                                                                                                    <td colspan="2">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                    </td>
                                                                                                                    <td colspan="3" valign="top">
                                                                                                                        <strong style="margin-bottom: 5px; display: block">
                                                                                                                            <asp:Label ID="lblCompanyName" runat="server"></asp:Label></strong>
                                                                                                                        <asp:Label ID="lblCompanyAddress" runat="server"></asp:Label>
                                                                                                                        <br />
                                                                                                                        <asp:Label ID="lblCompanyEmail" runat="server"></asp:Label><br />
                                                                                                                        <asp:Label ID="lblCompanyPhone" runat="server"></asp:Label>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td width="1%" height="10">
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td width="1%" colspan="2">
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="0%">
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td height="21px" colspan="13">
                                                                                                                        <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="1" class="popup-inner-heading2">
                                                                                                                            <tr>
                                                                                                                                <td class="popup-inner-heading2"  align="left">
                                                                                                                                    <asp:Button ID="btnAdd" runat="server" class="add" ValidationGroup="save" Text="Add"
                                                                                                                                        OnClick="btnAdd_Click" />
                                                                                                                                </td>
                                                                                                                                <td width="3%" align="right">
                                                                                                                                    <asp:Button ID="btnQuotationPrice" class="quot_icon" ToolTip="Update quotation price"
                                                                                                                                        runat="server" Text="" OnClientClick="OpenDetail_Quotation();"
                                                                                                                                        onclick="btnQuotationPrice_Click" />
                                                                                                                                </td>
                                                                                                                                <td width="70" align="right">
                                                                                                                                    <asp:Button ID="btnCalculate" runat="server" class="calculator" Text="Calculate"
                                                                                                                                        OnClick="btnCalculate_Click" />
                                                                                                                                </td>
                                                                                                                                <td align="right" width="20">
                                                                                                                                    <img src="../../App_Themes/GPC/images/spacer3.gif" width="29" height="1" />
                                                                                                                                </td>
                                                                                                                            </tr>
                                                                                                                        </table>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </table>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td height="200">
                                                                                                            <telerik:RadGrid ID="GridQuotations" Skin="RadSkin" runat="server" AllowPaging="True"
                                                                                                                ShowFooter="True" Width="100%" EnableEmbeddedSkins="False" AutoGenerateColumns="False"
                                                                                                                AllowSorting="True" GridLines="None" AllowMultiRowSelection="True" EnableOutsideScripts="True"
                                                                                                                OnNeedDataSource="GridQuotations_NeedDataSource" OnUpdateCommand="GridQuotations_UpdateCommand"
                                                                                                                OnDeleteCommand="GridQuotations_DeleteCommand">
                                                                                                                <ExportSettings>
                                                                                                                    <Pdf PageWidth="8.5in" PageHeight="11in" PageTopMargin="" PageBottomMargin="" PageLeftMargin=""
                                                                                                                        PageRightMargin="" PageHeaderMargin="" PageFooterMargin=""></Pdf>
                                                                                                                </ExportSettings>
                                                                                                                <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="false"></PagerStyle>
                                                                                                                <MasterTableView CommandItemDisplay="None" DataKeyNames="product_ID,quot_BOM_pk"
                                                                                                                    AllowMultiColumnSorting="True" AllowAutomaticUpdates="false" AllowAutomaticInserts="false"
                                                                                                                    EditMode="InPlace">
                                                                                                                    <EditFormSettings>
                                                                                                                        <EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif"
                                                                                                                            InsertImageUrl="Update.gif" UniqueName="EditCommandColumn1"
                                                                                                                            UpdateImageUrl="Update.gif">
                                                                                                                        </EditColumn>
                                                                                                                    </EditFormSettings>
                                                                                                                    <CommandItemStyle CssClass="top-icon-bar" />
                                                                                                                    <RowIndicatorColumn Visible="False">
                                                                                                                        <HeaderStyle Width="20px"></HeaderStyle>
                                                                                                                    </RowIndicatorColumn>
                                                                                                                    <ExpandCollapseColumn Resizable="False">
                                                                                                                        <HeaderStyle Width="20px"></HeaderStyle>
                                                                                                                    </ExpandCollapseColumn>
                                                                                                                    <Columns>
                                                                                                                        <telerik:GridTemplateColumn HeaderText="Code" UniqueName="Code" DataField="Code">
                                                                                                                            <ItemTemplate>
                                                                                                                                <a href="#" onclick="ProductInfo('<%# Eval("quot_fk") %>','<%# Eval("product_ID") %>')">
                                                                                                                                    <%# Eval("R_code") %></a>
                                                                                                                            </ItemTemplate>
                                                                                                                            <HeaderStyle Width="15%"></HeaderStyle>
                                                                                                                        </telerik:GridTemplateColumn>
                                                                                                                        <telerik:GridTemplateColumn HeaderText="Description" UniqueName="description" DataField="description">
                                                                                                                            <ItemTemplate>
                                                                                                                                <%# Eval("R_description") %>
                                                                                                                                  
                                                                                                                            </ItemTemplate>
                                                                                                                            <HeaderStyle Width="15%"></HeaderStyle>
                                                                                                                        </telerik:GridTemplateColumn>
                                                                                                                        <telerik:GridTemplateColumn HeaderText="Price" UniqueName="Price" DataField="Price">
                                                                                                                            <ItemTemplate>
                                                                                                                                <%# Eval("Price") %>
                                                                                                                            </ItemTemplate>
                                                                                                                            <HeaderStyle Width="15%"></HeaderStyle>
                                                                                                                        </telerik:GridTemplateColumn>
                                                                                                                        <telerik:GridTemplateColumn HeaderText="Quantity" UniqueName="quantity" DataField="quantity">
                                                                                                                            <ItemTemplate>
                                                                                                                                <asp:Label ID="lblQuantity" runat="server" Text='<%# Eval("quantity") %>'></asp:Label>
                                                                                                                            </ItemTemplate>
                                                                                                                            <EditItemTemplate>
                                                                                                                                <asp:TextBox ID="txtQuantity" runat="server" Text='<%# Bind("quantity") %>' Width="80%"></asp:TextBox>
                                                                                                                                <asp:RegularExpressionValidator ID="regQuantity" runat="server" ControlToValidate="txtQuantity"
                                                                                                                                    ToolTip="Enter numeric" ValidationExpression="^-[0-9]+$|^[0-9]+$" Display="Dynamic"
                                                                                                                                    ErrorMessage="<img src="../../Images/alert.gif" />">
                                                                                                                                </asp:RegularExpressionValidator>
                                                                                                                                <asp:RequiredFieldValidator ID="reqQuantity" runat="server" ErrorMessage="<img src="../../Images/alert.gif" />"
                                                                                                                                    ToolTip="Enter Quantity" Display="Dynamic" ControlToValidate="txtQuantity">
                                                                                                                                </asp:RequiredFieldValidator>
                                                                                                                            </EditItemTemplate>
                                                                                                                            <HeaderStyle Width="15%"></HeaderStyle>
                                                                                                                        </telerik:GridTemplateColumn>
                                                                                                                        <telerik:GridTemplateColumn HeaderText="Weight" UniqueName="weight" DataField="weight">
                                                                                                                            <ItemTemplate>
                                                                                                                                <%# Eval("weight")%>
                                                                                                                            </ItemTemplate>
                                                                                                                            <HeaderStyle Width="15%"></HeaderStyle>
                                                                                                                        </telerik:GridTemplateColumn>
                                                                                                                        <telerik:GridTemplateColumn HeaderText="Total Price" UniqueName="Price" DataField="Price">
                                                                                                                            <ItemTemplate>
                                                                                                                                <asp:Label ID="lblPrice" runat="server" Text='<%# Convert.ToDecimal( Eval("quantity")) * Convert.ToDecimal(Eval("Price")) %>'></asp:Label>
                                                                                                                            </ItemTemplate>
                                                                                                                            <HeaderStyle Width="15%"></HeaderStyle>
                                                                                                                        </telerik:GridTemplateColumn>
                                                                                                                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="../../App_Themes/GPC/Grid/Update.gif"
                                                                                                                            EditImageUrl="../../App_Themes/GPC/Grid/edit.gif" InsertImageUrl="../../App_Themes/GPC/Grid/insert.gif"
                                                                                                                            CancelImageUrl="../../App_Themes/GPC/Grid/Cancel.gif">
                                                                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                                                                            <HeaderStyle Width="6%"></HeaderStyle>
                                                                                                                        </telerik:GridEditCommandColumn>
                                                                                                                        <telerik:GridButtonColumn ConfirmText="Delete this Record?" ButtonType="ImageButton"
                                                                                                                            ImageUrl="../../App_Themes/GPC/Grid/Delete.gif" CommandName="Delete" Text="Delete"
                                                                                                                            UniqueName="DeleteColumn">
                                                                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                                                                            <HeaderStyle Width="5%"></HeaderStyle>
                                                                                                                        </telerik:GridButtonColumn>
                                                                                                                    </Columns>
                                                                                                                </MasterTableView>
                                                                                                                <ClientSettings>
                                                                                                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                                                                                                    <Selecting AllowRowSelect="true" />
                                                                                                                    <ClientEvents />
                                                                                                                </ClientSettings>
                                                                                                                <ValidationSettings CommandsToValidate="PerformInsert,Update" />
                                                                                                                <ItemStyle HorizontalAlign="Left" />
                                                                                                                <FilterMenu Skin="RadSkin" EnableEmbeddedSkins="False" EnableTheming="True">
                                                                                                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                                                                                                </FilterMenu>
                                                                                                            </telerik:RadGrid>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td height="2px">
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                                                                                                                <tr>
                                                                                                                    <td class="popup-inner-heading" colspan="9">
                                                                                                                        Delivery Details      
                                                                                                                    </td>
                                                                                                                    <td align="right" class="popup-inner-heading_without_padding">
                                                                                                                        <asp:Button ID="btnDeliveryCalculate" runat="server" class="calculator" OnClick="btnDeliveryCalculate_Click"
                                                                                                                            Text="Calculate" />
                                                                                                                    </td>
                                                                                                                    <td align="right" class="popup-inner-heading_without_padding">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td align="right" class="popup-inner-heading_without_padding">
                                                                                                                        <img height="1" src="../../App_Themes/GPC/images/spacer3.gif" width="12" />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td width="1%" height="10">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="13" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="5" height="1" />
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="12" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="10" height="1" />
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="5" height="1" />
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                         <img height="1" src="../../App_Themes/GPC/images/spacer3.gif" width="12" /><img
                                                                                                                            height="1" src="../../App_Themes/GPC/images/spacer3.gif" width="12" />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        Delivery Type
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <asp:DropDownList ID="ddldeliveryoption" runat="server" CssClass="drop">
                                                                                                                        </asp:DropDownList>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                    </td>
                                                                                                                    <td align="center">
                                                                                                                        Courier
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <asp:DropDownList ID="ddlCourierType" runat="server" CssClass="drop">
                                                                                                                        </asp:DropDownList>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td height="10" width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td width="1%" height="10">
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                        Delivery Cost
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                        <asp:TextBox ID="txtDeliveryCost" runat="server" MaxLength="50"></asp:TextBox>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td height="10" width="1%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="2%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="10%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="36%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td width="1%">
                                                                                                                            
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </table>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td class="popup-inner-heading">
                                                                                                            Notes
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td valign="top" height="100%">
                                                                                                            <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                                                                                                                <tr>
                                                                                                                    <td height="10">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="13px" height="1" />
                                                                                                                    </td>
                                                                                                                    <td valign="top">
                                                                                                                        <telerik:RadComboBox ID="RadComboBox1" Runat="server" Culture="en-GB"
                                                                                                                            Height="150px" Skin="Office2007" Width="800px">
                                                                                                                            <Items>
                                                                                                                                <telerik:RadComboBoxItem runat="server" Owner="RadComboBox1" Selected="True"
                                                                                                                                    Text="QUOTE" Value="QUOTE" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Owner="RadComboBox1"
                                                                                                                                    Text="Laser only including material - Natural finish"
                                                                                                                                    Value="Laser only including material - Natural finish" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Owner="RadComboBox1"
                                                                                                                                    Text="Laser and press only including material - Natural finish"
                                                                                                                                    Value="Laser and press only including material - Natural finish" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Owner="RadComboBox1"
                                                                                                                                    Text="Laser, press and weld only including material - Natural finish"
                                                                                                                                    Value="Laser, press and weld only including material - Natural finish" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Owner="RadComboBox1"
                                                                                                                                    Text="Laser only from free issue material - Natural finish"
                                                                                                                                    Value="Laser only from free issue material - Natural finish" />
                                                                                                                                <telerik:RadComboBoxItem runat="server"
                                                                                                                                    Text="Laser and press only from free issue material - Natural finish"
                                                                                                                                    Value="Laser and press only from free issue material - Natural finish" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Checked="True"
                                                                                                                                    Text="Laser, press and weld only from free issue material - Natural finish"
                                                                                                                                    Value="Laser, press and weld only from free issue material - Natural finish" />
                                                                                                                                <telerik:RadComboBoxItem runat="server"
                                                                                                                                    Text="Delivery 5-7 working days from receipt of order"
                                                                                                                                    Value="Delivery 5-7 working days from receipt of order" />
                                                                                                                                <telerik:RadComboBoxItem runat="server"
                                                                                                                                    Text="Delivery 7-10 working days from receipt of order"
                                                                                                                                    Value="Delivery 7-10 working days from receipt of order" />
                                                                                                                                <telerik:RadComboBoxItem runat="server"
                                                                                                                                    Text="Delivery 10-15 working days from receipt of order"
                                                                                                                                    Value="Delivery 10-15 working days from receipt of order" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Prices nett ex-works + vat"
                                                                                                                                    Value="Prices nett ex-works + vat" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Delivery charged at cost"
                                                                                                                                    Value="Delivery charged at cost" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Prices include delivery"
                                                                                                                                    Value="Prices include delivery" />
                                                                                                                                <telerik:RadComboBoxItem runat="server"
                                                                                                                                    Text="Please use our Quote number for orders and correspondence."
                                                                                                                                    Value="Please use our Quote number for orders and correspondence." />
                                                                                                                                <telerik:RadComboBoxItem runat="server"
                                                                                                                                    Text="PLEASE NOTE: Free Issue Materials are accepted at the customers risk only. We do not accept liability for the replacement of damaged free issue materials how so ever caused."
                                                                                                                                    Value="PLEASE NOTE: Free Issue Materials are accepted at the customers risk only. We do not accept liability for the replacement of damaged free issue materials how so ever caused." />
                                                                                                                                <telerik:RadComboBoxItem runat="server"
                                                                                                                                    Text="PLEASE NOTE:- We are expecting increased steel costs in the next few weeks which will affect this quotation if ordered after the expiry date."
                                                                                                                                    Value="PLEASE NOTE:- We are expecting increased steel costs in the next few weeks which will affect this quotation if ordered after the expiry date." />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="JOB" Value="JOB" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Laser To Program"
                                                                                                                                    Value="Laser To Program" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Laser To Drawing"
                                                                                                                                    Value="Laser To Drawing" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Laser & Press To Drawing"
                                                                                                                                    Value="Laser & Press To Drawing" />
                                                                                                                                <telerik:RadComboBoxItem runat="server"
                                                                                                                                    Text="Laser, Press & Weld To Drawing"
                                                                                                                                    Value="Laser, Press & Weld To Drawing" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="C of C Required"
                                                                                                                                    Value="C of C Required" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Material Certs. Required"
                                                                                                                                    Value="Material Certs. Required" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Protect Parts From Scratches"
                                                                                                                                    Value="Protect Parts From Scratches" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Free Issue Material"
                                                                                                                                    Value="Free Issue Material" />
                                                                                                                                <telerik:RadComboBoxItem runat="server"
                                                                                                                                    Text="Welds Must Be Of A Good Quality - NO PIN HOLES"
                                                                                                                                    Value="Welds Must Be Of A Good Quality - NO PIN HOLES" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Check Hole Tolerance"
                                                                                                                                    Value="Check Hole Tolerance" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Links Must Be Flat To Within 1mm"
                                                                                                                                    Value="Links Must Be Flat To Within 1mm" />
                                                                                                                                <telerik:RadComboBoxItem runat="server" Text="Check Hole Tolerance"
                                                                                                                                    Value="Check Hole Tolerance" />
                                                                                                                                <telerik:RadComboBoxItem runat="server"
                                                                                                                                    Text="Check Hole – Rivet To Be Good Fit In Hole"
                                                                                                                                    Value="Check Hole – Rivet To Be Good Fit In Hole" />
                                                                                                                            </Items>
                                                                                                                        </telerik:RadComboBox>
                                                                                                                    </td>
                                                                                                                    <td width="29">
                                                                                                                        <img src="../../App_Themes/GPC/images/spacer3.gif" width="29" height="1" />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                    <td height="100%" valign="top">
                                                                                                                        <asp:TextBox ID="txtNote" onkeypress="if(this.value.length>500){return false;}" TextMode="MultiLine"
                                                                                                                            runat="server" Height="100" Width="100%" style="margin-right: 0px"></asp:TextBox>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                          
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td width="1%" height="10">
                                                                                                                    </td>
                                                                                                                    <td valign="top">
                                                                                                                         </td>
                                                                                                                    <td width="2%">
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </table>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td height="10px">
                                                                                                            <asp:Button ID="btnRefresh" runat="server" Text="Button" Height="0px" Width="0px"
                                                                                                                OnClick="btnRefresh_Click" Style="display: none" />
                                                                                                            <asp:Button ID="btnQuotation_Refresh" runat="server" Text="Button" Height="0px" Width="0px"
                                                                                                                OnClick="btnQuotation_Refresh_Click" Style="display: none" />
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td valign="top" height="100%">
                                                                    <iframe id="mainFrame" runat="server" visible="false" width="100%" height="100%"
                                                                        scrolling="no" frameborder="0"></iframe>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="footer-bar">
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        </form>
    </body>
    </html>
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 21 Nov 2011 Link to this post

    Hello Steven,

    After inspecting the page you have provided, I've notice that the following code is added:
    <script type="text/javascript">
     function OnClientClick()
      {
         var combo= $find("<%=RadComboBox1.ClientID %>");
         var txt = document.getElementById("txt");
         var combotxt = combo.get_text();
         txt.innerText = combotxt ;
      }
    </script>

    but the OnClientClick function is not assigned as an event handler to any action. Could you clarify when exactly do you need to set the text from the RadComboBox in the TextBox. Also specify which are the TextBox and RadComboBox in question.

    Regards,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Steven
    Steven avatar
    7 posts
    Member since:
    Jun 2011

    Posted 21 Nov 2011 Link to this post

    Hi there and thanks for the reply,

    I would just like the asp:TextBox#txtNote box to be populated with the selection from the RadComboBox#RadComboBox1 box after the user has made there selection

    Thanks in adavnce
  6. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Nov 2011 Link to this post

    Hello Steven,

    Try the following code snippet in the OnClientSelectedIndexChanging event.

    Javascript:
    function OnClientSelectedIndexChanging(sender, args)
       {
          var combotxt = args.get_item().get_text();
          var txt = document.getElementById("txt");
          txt.innerText = combotxt;
        }

    Thanks,
    Princy.
  7. Steven
    Steven avatar
    7 posts
    Member since:
    Jun 2011

    Posted 23 Nov 2011 Link to this post

    Thanks again for the input, im still not getting anywhere with the code snippet.

    Im convinced im doing something stupidly wrong. Would someone mind showing me in context where this should be going and why. Fingers crossed ill finally get it cracked then.

    Many thanks again
  8. Answer
    Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 24 Nov 2011 Link to this post

    Hi Steven,

    In order to help you solve this problem, please open a support ticket and provide a runnable sample page so I could test and modify it locally.

    All the best,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top