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

[Solved] Editable Grid: Giving Jscript Error Microsoft JScript runtime error: Unable to get value of the property 'settings': object is null or undefined

2 Answers 158 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Prabith
Top achievements
Rank 1
Prabith asked on 03 Jul 2012, 10:26 AM

We are using editable telerik grid.
We have the following scripts included for client side validation

jquery.validate.min.js
jquery.validate.unobtrusive.min.js

Html.Telerik().ScriptRegistrar()
.DefaultGroup(group => group.Add("MicrosoftAjax.js")
.Add("MicrosoftMvcValidation.js")); }
But when the editable grid is selected its giving the following error

Microsoft JScript runtime error: Unable to get value of the property 'settings': object is null or undefined.
Someone in this forum has suggested to use (Html.Telerik().ScriptRegistrar().jQuery(false)),
but it disables client side validation.
Has any one faced this issue before? Any solution for this? Please help

Thanks in advance,
Prabi

2 Answers, 1 is accepted

Sort by
0
Kerry
Top achievements
Rank 1
answered on 06 Aug 2012, 07:48 PM
I am experiencing something very similar using dropdowns.

It appears to be related to the fact that the names are so similar.  The two controls are bound to the model using
model.workOrder.WorkOrderType.ID
model.workOrder.WorkOrderStatus.ID

<%= Html.Telerik().DropDownListFor(model => model.workOrder.WorkOrderType.ID).BindTo(Model.workOrderTypes) %>
<%= Html.Telerik().DropDownListFor(model => model.workOrder.WorkOrderStatus.ID).BindTo(Model.workOrderStatus) %>

There are other telerik drop downs in the same page.  However these two cannot co-exist.  if they do, I get
Microsoft JScript runtime error: Unable to get value of the property 'contains': object is null or undefined

If I try to rename the control using .Name(), the binding breaks and the data object doesn't save correctly.

I hope that provides enough specific information to get some assistance.  If not, please contact me and let me know what more I could provide.

Kerry

0
MICHAEL
Top achievements
Rank 1
answered on 25 Nov 2012, 05:19 PM
Hi Kerry,

I'm having the same problem as you described.  Were you ever able to solve this?

Thanks,
Michael

Tags
Grid
Asked by
Prabith
Top achievements
Rank 1
Answers by
Kerry
Top achievements
Rank 1
MICHAEL
Top achievements
Rank 1
Share this question
or