Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
igcmbo_getComboByID Not Working
posted

I'm trying to use igcmbo_getComboByID but it always returns a javascript error ("Object Expected") at that line of code.  Any help would be greatly appreciated.

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ifrmhandmicro2.aspx.cs" Inherits="CIL.Site.WorkOrders.ifrmhandmicro2" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

    Namespace="System.Web.UI" TagPrefix="asp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register TagPrefix="igtbl" Namespace="Infragistics.WebUI.UltraWebGrid" Assembly="Infragistics2.WebUI.UltraWebGrid.v6.3, Version=6.3.20063.1085, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>

<%@ Register TagPrefix="igcmbo" Namespace="Infragistics.WebUI.WebCombo" Assembly="Infragistics2.WebUI.WebCombo.v6.3, Version=6.3.20063.1085, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml" >

<head id="Head1" runat="server">

    <title>Temp Page Title</title>

    <link href="../../Site/Configuration/Styles/Custom.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">

 

function SetFocus()

{

    var grid = igtbl_getGridById("wg_IngredientData");

    var combo=igcmbo_getComboByID("WebCombo1");

    for(w = grid.Rows.length-1; w >=0 ; w--)

    {

 grid.Rows.getRow(w).getCellFromKey("Column2").setValue(grid.Rows.getRow(w).getCellFromKey("LotID").getValue());

    }

}

 

    </script>

</head>

<body>

    <form id="form1" runat="server">

 

......

 

<igcmbo:WebCombo ID="WebCombo1" runat="server">

                <Columns>

                    <igtbl:UltraGridColumn>

                        <header caption="Column0"></header>

                    </igtbl:UltraGridColumn>

                </Columns>

                <ExpandEffects ShadowColor="LightGray" />

                <DropDownLayout BorderCollapse="Separate" RowHeightDefault="20px" Version="4.00">

                    <FrameStyle BackColor="Silver" BorderStyle="Ridge" BorderWidth="2px" Cursor="Default"

                        Font-Names="Verdana" Font-Size="10pt" Height="130px" Width="325px">

                    </FrameStyle>

                    <HeaderStyle BackColor="LightGray" BorderStyle="Solid">

                        <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />

                    </HeaderStyle>

                    <RowStyle BackColor="White" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px">

                        <BorderDetails WidthLeft="0px" WidthTop="0px" />

                    </RowStyle>

                    <SelectedRowStyle BackColor="DarkBlue" ForeColor="White" />

                </DropDownLayout>

            </igcmbo:WebCombo>

 

......

Parents
No Data
Reply Children