This is a migrated thread and some comments may be shown as answers.

Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.

5 Answers 270 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam Hager
Top achievements
Rank 1
Adam Hager asked on 11 Nov 2009, 04:47 PM
I have a radgrid that is bound to an EntityDataSource Control.  Everytime I insert a new record I receive the following error: Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: id

Below is my markup.  Any thoughts would be greatly appreciated.  Thanks!

<

 

telerik:RadGrid runat="server" ID="RadGrid2" AllowPaging="True"

 

 

AllowSorting="True" Width="97%" DataSourceID="EntityDataSource1" AllowAutomaticInserts="True"

 

 

AllowAutomaticUpdates="True" ShowStatusBar="True"

 

 

GridLines="None"

 

 

AutoGenerateColumns="False" OnItemCommand="RadGrid2_ItemCommand" >

 

 

<PagerStyle Mode="NumericPages" AlwaysVisible="true" />

 

 

<MasterTableView Width="100%" CommandItemDisplay="Top"

 

 

DataSourceID="EntityDataSource1"

 

 

DataKeyNames="VendorCrewId">

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName"

 

 

SortExpression="FirstName" UniqueName="FirstName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="LastName" HeaderText="LastName" SortExpression="LastName"

 

 

UniqueName="LastName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Bio" HeaderText="Bio"

 

 

SortExpression="Bio" UniqueName="Bio" ItemStyle-Width="300px" ItemStyle-HorizontalAlign="NotSet">

 

 

<ItemStyle Width="300px" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridCheckBoxColumn DataField="IsActive" DataType="System.Boolean"

 

 

HeaderText="IsActive" SortExpression="IsActive" UniqueName="IsActive">

 

 

</telerik:GridCheckBoxColumn>

 

 

<telerik:GridBinaryImageColumn DataField="Image" HeaderText="Image" UniqueName="Upload" ImageAlign="NotSet"

 

 

ImageHeight="80px" ImageWidth="80px" ResizeMode="Fit"

 

 

DataAlternateTextFormatString="Image of {0}">

 

 

<HeaderStyle Width="10%" />

 

 

</telerik:GridBinaryImageColumn>

 

 

<telerik:GridBoundColumn DataField="VendorCrewId" DataType="System.Int32"

 

 

HeaderText="VendorCrewId" ReadOnly="True" Visible="False" SortExpression="VendorCrewId"

 

 

UniqueName="VendorCrewId">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="CompanyEntities.CompanyEntityId"

 

 

DataType="System.Int32" HeaderText="Vendor Id"

 

 

SortExpression="CompanyEntities.CompanyEntityId"

 

 

Visible="False">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

<EditFormSettings>

 

 

<EditColumn ButtonType="ImageButton" />

 

 

</EditFormSettings>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

5 Answers, 1 is accepted

Sort by
0
Adam Hager
Top achievements
Rank 1
answered on 11 Nov 2009, 07:43 PM
I solved this.  I simply removed the ajaxpanel surrounding the grid
0
Thomas
Top achievements
Rank 1
answered on 18 Mar 2011, 07:16 PM
So Telerik?  Are you saying that this is the answer?  Just remove the ajax panel?  What if you need the ajax panel?  That would not be the solution then.  LOL  I was hoping for a better answer.  My problem is some how connected to the upgrade of the DotNetNuke module from 2.0 framework to 3.5 and then the new Telerik 2010.2.929.35 version of Telerik.Web.UI.dll  I've looked at the version of AJAX on my machine and am using ASPNET 3.5.  What else am I missing?  My error message is:
Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: type
While in debug mode it's throwing the error here:

function

 

Sys$Component$create(type, properties, events, references, element) { var e = Function._validateParams(arguments, [ {name: "type", type: Type}, ...

 

While hovering over the properities to see the value within them.  The type shows to be null.

0
Maria Ilieva
Telerik team
answered on 24 Mar 2011, 10:00 AM
Hi Thomas,

Could you please elaborate a bit more on your application? Does the error appear if regular asp UpdatePanel is used instead of RadAjaxPanel? Please provide some code from the RadGrid markup and the related code behind so we could further research on the problem and advice you on the issue.


All the best,
Maria Ilieva
the Telerik team
0
wajira
Top achievements
Rank 1
answered on 10 Jun 2013, 09:00 AM

My Rad version is : 2008.1.415.35

I'm getting same error when I use RAD tree control in a user control , and 
using  "telerik:RadAjaxManagerProxy" within the .aspx page, which includes above user control. 

This happens at the Node click action. But before it fire the client side methods of Node click event.

Same error when I replace telerik:RadAjaxManagerProxy with a update panel as well. 
If I remove these Ajax controls and let it postback, This error doesnt come. 

Any suggestion please ? 


0
Maria Ilieva
Telerik team
answered on 10 Jun 2013, 11:48 AM
Hi Wajira,

Note that the version of RadControls you are using is no longer supported. Therefore please upgrade to the latest official release of the controls and let us know if you are still facing the presented error.

Regards,
Maria Ilieva
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Adam Hager
Top achievements
Rank 1
Answers by
Adam Hager
Top achievements
Rank 1
Thomas
Top achievements
Rank 1
Maria Ilieva
Telerik team
wajira
Top achievements
Rank 1
Share this question
or