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>
I'm having the same problem, did you find how to make it work?
Have worked with this control quite a bit and found some "interesting" issues with this one.
- Make sure you have a virtual directory called Webcombo2 under "commonlibrary" in IIS.
If that doesn't work, try this (my Team Lead found it):
http://support.platformexperts.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=29
After deploy your web applications to Windows 2003 server family, the web pages that use Intersoft's components are no longer working because of JavaScript Error "Object Expected".CAUSE This problem is caused by tightened security policy implemented by IIS 6.0. By default, IIS 6.0 will only deliver web contents which MIME type has been registered in the metabase. Intersoft's components are using Encoded JScript as the client side runtime which MIME type is not registered by default on a fresh installed Windows 2003 server. This is causing all web pages that implement Encoded JScript to no longer working since that it is not delivered to client. RESOLUTION To resolve this problem, simply add the .jse to the MIME Type in IIS metabase. See detailed instructions below: Open Internet Information Services (IIS) Manager. Right click on the SERVERNAME (local computer) node. Click on the MIME Types button. Click New to add entry. Type ".jse" in the Extension textbox. (Without double quote) Type "application/x-javascript". (Without double quote) Click OK to close the dialog box. Click OK to close the Property dialog box. Right click on the SERVERNAME again. Select "All Tasks" Click "Restart IIS..." to apply the changes.
After doing these steps, ours works fine again.....