Hello,
I was recently given a 1.1 project to convert to 2.0 and I am encountering an error I'm hoping you can shed some light on. The 1.1 application used NetAdvantage 2003 Vol2 and the 2.0 application is using NetAdvantage for .NET 2007 Volume 1 CLR 2.0.
I have a form with a serverside button and in its ServerClick event writes back some JavaScript that will call a display() function. The display function calls the igtbl_initGrid, passing in the name of my grid.
The code looks like 'var grid = igtbl_initGrid(<name of my grid>);
The line that fails is line 251 of ig_WebGrid_dom.js with an 'Object required' error. Checking the previous line, it seems that _scrElem is null and that this.Element.parentNode.previousSibling has no value.
I have isolated all of the code into one test page that duplicates the error.
Thanks,
John
Here is the contents of TestWebGrid.aspx and .aspx.vb file:
----------------------------------------------
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestWebGrid.aspx.vb" Inherits="OCWCVC.TestWebGrid" EnableEventValidation="false" %><%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %><!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 runat="server"> <title>Untitled Page</title> <script type="text/javascript" src="test.js"> </script></head><body> <form id="form1" runat="server"> <igtbl:UltraWebGrid ID="ugrdReferralsSelected" runat="server" Width="333px" Height="230px" DisplayLayout-JavaScriptFileName="" DisplayLayout-JavaScriptFileNameCommon=""> <Bands> <igtbl:UltraGridBand> </igtbl:UltraGridBand> </Bands> <DisplayLayout AllowDeleteDefault="Yes" AllowAddNewDefault="Yes" RowHeightDefault="20px" ScrollBar="Never" CellSpacingDefault="-1" CellPaddingDefault="-1" RowSelectorsDefault="No" Name="ugrdReferralsSelected" AllowUpdateDefault="Yes"> <AddNewBox ButtonStyle-BorderWidth="1px" ButtonStyle-BorderStyle="Solid" ButtonStyle-BackColor="lightgray"> </AddNewBox> <Pager ComboStyle-BorderStyle="Solid" ComboStyle-BorderWidth="1px" ComboStyle-BackColor="LightGray"> </Pager> <HeaderStyleDefault CssClass="GridHeader" > <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails> </HeaderStyleDefault> <FrameStyle Width="333px" BorderWidth="1px" Font-Size="8pt" Font-Names="Verdana" BorderColor="#6F8FB5" BorderStyle="Solid" Height="230px"> </FrameStyle> <FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray"> <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails> </FooterStyleDefault> <ClientSideEvents CellChangeHandler="addDrtoList" AfterExitEditModeHandler="addDrtoList"> </ClientSideEvents> <ActivationObject BorderStyle="None" BorderColor="231, 239, 255"> </ActivationObject> <EditCellStyleDefault Cursor="Hand" BorderWidth="0px" BorderStyle="None"> </EditCellStyleDefault> <SelectedRowStyleDefault BackColor="Silver"> </SelectedRowStyleDefault> <RowStyleDefault BorderWidth="1px" BorderColor="Gray" BorderStyle="Solid" HorizontalAlign="Left"> <Padding Left="3px"></Padding> <BorderDetails WidthLeft="0px" WidthTop="0px"></BorderDetails> </RowStyleDefault> </DisplayLayout> </igtbl:UltraWebGrid><br /> <br /> <asp:Button ID="btnDone" runat="server" Text="Done" /> </form></body></html>----------------------------------------------
Public Partial Class TestWebGrid Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.ugrdReferralsSelected.Font.Size = New FontUnit(8) Me.ugrdReferralsSelected.Columns.Add("col0", "c") Me.ugrdReferralsSelected.Columns.Add("col1", "r") Me.ugrdReferralsSelected.Columns.Add("col2", "d") Me.ugrdReferralsSelected.Columns.Add("col3", "rd") Me.ugrdReferralsSelected.Columns.Add("col4", "sd") Me.ugrdReferralsSelected.Columns.FromKey("col0").Width = New Unit(20) Me.ugrdReferralsSelected.Columns.FromKey("col0").HeaderText = "c" Me.ugrdReferralsSelected.Columns.FromKey("col0").AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.No Me.ugrdReferralsSelected.Columns.FromKey("col1").Width = New Unit(20) Me.ugrdReferralsSelected.Columns.FromKey("col1").HeaderText = "r" Me.ugrdReferralsSelected.Columns.FromKey("col1").AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.No Me.ugrdReferralsSelected.Columns.FromKey("col2").Width = New Unit(60) Me.ugrdReferralsSelected.Columns.FromKey("col2").HeaderText = "d" Me.ugrdReferralsSelected.Columns.FromKey("col2").AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.No Me.ugrdReferralsSelected.Columns.FromKey("col3").Width = New Unit(200) Me.ugrdReferralsSelected.Columns.FromKey("col3").HeaderText = "dr" Me.ugrdReferralsSelected.Columns.FromKey("col3").FieldLen = 25 Me.ugrdReferralsSelected.Columns.FromKey("col4").Width = New Unit(9) Me.ugrdReferralsSelected.Columns.FromKey("col4").HeaderText = "" Me.ugrdReferralsSelected.Columns.FromKey("col4").AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.No Me.ugrdReferralsSelected.DisplayLayout.CellClickActionDefault = Infragistics.WebUI.UltraWebGrid.CellClickAction.CellSelect Me.ugrdReferralsSelected.DisplayLayout.AllowUpdateDefault = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes Me.ugrdReferralsSelected.DisplayLayout.AllowAddNewDefault = Infragistics.WebUI.UltraWebGrid.AllowAddNew.Yes Me.ugrdReferralsSelected.DisplayLayout.AddNewBox.Hidden = False Me.ugrdReferralsSelected.DisplayLayout.AddNewBox.Style.CustomRules = "display:none" End Sub Protected Sub btnDone_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDone.Click Me.ClientScript.RegisterStartupScript(GetType(Page), "Display", "<script language='javascript'> DisplayAfterError();</script>") End Sub End Class
This issue needs a closure look. I've created a case for this and will send you the updates. You will be notified in the email address you have provided in your profile.
Sarita
Hi,
can you please send those updates to my given mail id...
we are also facing same problem...
thank you ,
Siva kumar Goru.
Hi Sarita:
I updated my application from ASP.NET1.1 to ASP.NET 4,and I also encountered this problem. How can I solve this problem? Thanks!
Best Regards,
Scott