Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element

Answered (Not Verified) This post has 0 verified answers | 15 Replies | 8 Followers Thread's RSS feed.

clipnicki333
Points 165
Replied On: Thu, Jun 24 2010 3:44 PM Reply

Hello,

I have just upgraded from WebClient controls version 10.1 to 10.2 and my previous flawless WebHierarchicalDataGrid now breaks after paging with a clientside error from the ajax include file. MicrosoftAjax.debug.js  Assembly: System.Web.Extensions Version: 3.5.0.0 FileVersion: 3.5.30729.1

Error is: Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element

At: if (!element) throw Error.argument('element', Sys.Res.createNoDom);

I have a two level parent-child relationship. Paging is set to 25 items. Steps to reproduce: Expand a parent with one page of children works fine. Expand a parent with multiple pages of children works fine for initially. Once I page (click page 2) and result come back fine. The error occurs in trying to expand a parent above the recently paged parent. It consistently errors in the ajax script file.

The tested the same data from the same project one week ago but with the version 10.1 controls and no such error occurs.

As an aside, I am using InitialDataBindDepth of -1. When I change the value to 0 (load on demand) I get the error: "Deserialization failure: Invalid response." This error will occur after expanding a parent with multiple pages of children, expanding a parent with one page of children and then trying to re-expand the parent with multiple children. No paging action is needed to reproduce the error in this scenario.

Anyone please advise as this is a roadblock and a full day of research has come up empty so far.

Thanks,

Charlie

  • Post Points: 50

All Replies

[Infragistics]Lyuba
Points 6,683
Infragistics Employee
Replied On: Mon, Jul 5 2010 1:48 AM Reply

Hello Charles,

 

I have created a support ticket regarding this issue. Its number is CAS-48854-J7R4KY.

 

Regards,

Lyuba

Developer Support Engineer

Infragistics

www.infragistics.com/support

 

  • Post Points: 20
alirizvi
Points 345
Replied On: Tue, Sep 14 2010 4:59 PM Reply

I get the same js error when paging in webdatagrid in 2009.2.2037 -

Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.

If I remove all EditorProviders for the webdatagrid, this error goes away.

Anyone has a solution?

IE 6. (sorry, company mandated dinosaur browser).

  • Post Points: 5
alirizvi
Points 345
Replied On: Tue, Sep 14 2010 5:00 PM Reply

Build 9.2.20092.2137

  • Post Points: 5
alirizvi
Points 345
Replied On: Tue, Sep 14 2010 5:15 PM Reply

Ok, this might be an IE 6 thing. Firefox works just fine, no javascript errors. Anyone has a quick fix for IE6?

  • Post Points: 20
Grasshoper
Points 390
Replied On: Tue, Sep 28 2010 9:43 AM Reply

I got the same error any resolution?

  • Post Points: 5
clipnicki333
Points 165
Answered (Not Verified) Replied On: Tue, Nov 16 2010 8:40 AM Reply
Suggested by clipnicki333

This appears to be resolved in the latest service release for version 10.2.

  • Post Points: 20
ClaySeifert
Points 1,440
Replied On: Sun, Dec 19 2010 12:19 PM Reply

Not so fast.  I'm using WebDataGrid 10.3 with the following and I'm getting the error:

 

 

 

 

 

 

 

 

 

 

 

<EditorProviders>
    <ig:DropDownProvider ID="TerritoryProvider">
        <EditorControl ID="EditorControl1" runat="server"
  DataSourceID="SqlDataSource2" DisplayMode="DropDownList"
            DropDownContainerMaxHeight="300px" EnableAnimations="True"
            TextField="mktgrpkey" ValueField="mktgrpname"
            EnableDropDownAsChild="False" DropDownContainerHeight="300px" >
            <DropDownItemBinding TextField="mktgrpkey" ValueField="mktgrpname">
            </DropDownItemBinding>
        </EditorControl>
    </ig:DropDownProvider>
</EditorProviders>

<ig:CellEditing  Enabled="true" >
    <ColumnSettings>
            <ig:EditingColumnSetting ColumnKey="Territory" EditorID="TerritoryProvider" />
    </ColumnSettings>
</ig:CellEditing>

Please advise on how to correct.

  • Post Points: 5
[Infragistics]Lyuba
Points 6,683
Infragistics Employee
Answered (Not Verified) Replied On: Mon, Dec 20 2010 9:12 AM Reply
Suggested by [Infragistics]Lyuba

Hello ClaySeifert,

 

Would you please test it with the latest service release: 10.3.20103.2046.

If you are still getting this error with it, would you please attach a sample and the exact steps that should be followed for reproducing this issue.

 

Regards,

Lyuba

Developer Support Engineer

Infragistics

www.infragistics.com/support

 

 

  • Post Points: 20
ClaySeifert
Points 1,440
Replied On: Mon, Dec 20 2010 11:26 AM Reply

Hello Lyuba

Sorry -- false alarm.  I had a block of code in my markup that was commented out that was causing the error.  When I removed it, the problem cleared.  However, the code that I had commented out was for http://community.infragistics.com/forums/p/50123/264288.aspx#264288 that I'm still waiting to hear from someone.

Thank you

  • Post Points: 5
matthewb1174
Points 20
Answered (Not Verified) Replied On: Wed, Jan 26 2011 2:40 PM Reply
Suggested by matthewb1174

We ran into the same issue. Looking at the changes, we were running the AjaxControlToolkit.dll Version 3.0.20820.0 and upgraded to 4.1.40412.2.

After the upgrade, this error started occuring in the WHGrid without any changes to the code base. We reverted the Tool Kit version and that solved our issue.

Cheers

  • Post Points: 20
cwaldmann
Points 180
Replied On: Mon, Oct 24 2011 4:21 PM Reply

I am now getting this error as well. Just updated to the latest 10.3 service release (10.3.20103.2187)

I am binding to a datset

Here is the grid, nothing complicated. i even took out the sorting behaviour to see if that was it, but no joy.

<ig:WebHierarchicalDataGrid ID="whdgMatters" runat="server" EnableDataViewState="False"
         Width="90%" AutoGenerateBands="False"
        AutoGenerateColumns="False" DataKeyFields="ClientMatter" DataMember="Matters"
        Key="Matters" InitialDataBindDepth="1"  >
        <Columns>
            <ig:BoundDataField DataFieldName="CMName" Key="CMName">
                <Header Text="Client/Matter Name" />
            </ig:BoundDataField>
            <ig:BoundDataField DataFieldName="ClientMatter" Key="ClientMatter">
                <Header Text="Client/Matter #" />
            </ig:BoundDataField>
            <ig:BoundDataField DataFieldName="BillableTotal" Key="BillableTotal">
                <Header Text="Total Billed" />
            </ig:BoundDataField>
            <ig:BoundDataField DataFieldName="CallCount" Key="CallCount">
                <Header Text="Calls" />
            </ig:BoundDataField>
        </Columns>
        <Bands>
             <ig:Band AutoGenerateColumns="False" DataMember="Calls">
                <Columns>
                <ig:BoundDataField DataFieldName="ConferenceDateTime" DataFormatString="{0:G}"
                        Key="ConferenceDateTime">
                        <Header Text="DateTime" />
                    </ig:BoundDataField>
                    <ig:BoundDataField DataFieldName="HostName" Key="HostName">
                        <Header Text="Inputted Host" />
                    </ig:BoundDataField>
                    <ig:BoundDataField DataFieldName="HostTelephone" Key="HostTelephone">
                        <Header Text="Host Phone" />
                    </ig:BoundDataField>
                    <ig:BoundDataField DataFieldName="CallDuration"
                        Key="CallDuration">
                        <Header Text="Duration" />
                    </ig:BoundDataField>
                    <ig:BoundDataField DataFieldName="AttendeeCount"
                        Key="AttendeeCount">
                        <Header Text="# Attendees" />
                    </ig:BoundDataField>
                    <ig:BoundDataField DataFieldName="BillableAmt"
                        Key="BillableAmt" DataFormatString="{0:C}">
                        <Header Text="Amount Charged" />
                    </ig:BoundDataField>
                </Columns>
            </ig:Band>
        </Bands>
    </ig:WebHierarchicalDataGrid>

  • Post Points: 5
cwaldmann
Points 180
Replied On: Mon, Oct 24 2011 4:27 PM Reply

Just to clarify, I get the error when expanding a row.

  • Post Points: 5
cwaldmann
Points 180
Replied On: Tue, Nov 1 2011 2:26 PM Reply

Is there anything on this? PLEASE? I have tried using this same or even more simplified grid on different pages, using SqlDatasources/WebHierarchicalDatasources, removing columns to just 1 integer in the parent and 1 integer in the child, creating from scratch using the designer, etc. Nothing is working.

  • Post Points: 5
cwaldmann
Points 180
Replied On: Mon, Nov 7 2011 11:47 AM Reply

OK. Figured it out. There was a unicode comma "," in my data, that should not have been there. But what if I have characters like that that should be there?

  • Post Points: 20
Page 1 of 2 (16 items) 1 2 Next > | RSS