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

[Solved] IE Error with KeyboardNavigation on

0 Answers 102 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.
Charley
Top achievements
Rank 1
Charley asked on 11 Aug 2011, 08:54 PM
I had basic incel editing working perfectly in IE.  I since switch to the really nice new option for allowing keyboard navigation and I get these errors when I try and click into a cell to edit it  It looks to me like an error setting up the validation objects but not sure.  As shown in the code snippet I have client side javascript assigned to client side events.  Thanks for the replies.

SCRIPT5007: Unable to get value of the property 'settings': object is null or undefined
jquery.validate.js, line 305 character 6
SCRIPT5007: Unable to get value of the property 'settings': object is null or undefined
jquery.validate.js, line 805 character 3

@(
                Html.Telerik().Grid((List<IMRS.Model.WorkOrderRepairLine>)ViewData["workOrderRepairLine"])
                    .Name("WorkOrderRepairLines")
                    .DataKeys(d => d.Add(o => o.ID))
                    .Columns(c =>
                    {
                        c.Bound(o => o.ID).Visible(false);
                        c.Bound(o => o.ConditionCodeId).Visible(false);
                        c.Bound(o => o.WorkOrderRepairLineStatusId).Title("S").ReadOnly().Width(20);
                        c.Bound(o => o.JobCodeDescription).Title("Description").Width(70);
                        c.Bound(o => o.UnitLocationCodeDescription).Title("Loc").Width(28);
                        c.Bound(o => o.WhyMadeCodeDescription).Title("Why Made").Width(53);
                        c.Bound(o => o.ConditionCodeDescription).Title("Con Code").Width(53);
                        c.Bound(o => o.DefectQuantity).Title("Def Qty").Width(48);
                        c.Bound(o => o.DefectSize).Title("Def Size").Width(62);
                        c.Bound(o => o.RepairQuantity).Title("Rep Qty").Width(58);
                        c.Bound(o => o.RepairSize).Title("Rep Size").Width(58);
                        c.Bound(o => o.ResposibilityCodeDescription).Title("Resp").Width(35);
                        c.Bound(o => o.J2ActivityID).Title("J2 Act").Width(53);
                        c.Bound(o => o.LaborAmount).Title("Labor").Width(55).Format("{0:c}");
                        c.Bound(o => o.MaterialAmount).Title("Matl").Width(55).Format("{0:c}");
                        c.Bound(o => o.TaxAmount).Title("Tax").Width(59).Format("{0:c}");
                        c.Bound(o => o.Authorize).Title("Auth").Width(36).ClientTemplate("<input type=\"checkbox\" disabled=\"disabled\" name=\"Authorize\" title=\"Override Error\" id=\"Authorize\" <#= Authorize? checked='checked' : '' #> />");
                        c.Bound(o => o.OverRide).Title("Ov Rd").Width(42).ClientTemplate("<input type=\"checkbox\" disabled=\"disabled\" name=\"OverRide\" id=\"OverRide\" <#= Authorize? checked='checked' : '' #> />");
                        c.Command(commands => commands.Delete().ButtonType(GridButtonType.Image)).Width(32);
                        c.Template(@<text><span>test</span></text>).Width(32);
                        c.Bound(o => o.J2DamageID).Title("J2 Dam").Width(58);
                        c.Bound(o => o.TaxAmount).Title("Tax").Width(58);
                    })
                    .DataBinding(databinding =>
                        databinding.WebService()
                        .Update("http://imrs/workorder/UpdateWorkOrderJSON/")
                        .Select("http://imrs/workorder/UpdateWorkOrderJSON/")
                        .Insert("http://imrs/workorder/UpdateWorkOrderJSON/")
                        .Delete("http://imrs/workorder/UpdateWorkOrderJSON/")
                    )
                    .ToolBar(tools =>
                        {
                            tools.Insert().ButtonType(GridButtonType.Image);
                        }
                    )
                    .ClientEvents(events => events
                        .OnLoad("onDataBinding")
                        .OnEdit("editConditionCode")
                        .OnSave("anothertest")
                        .OnDelete("testdelete")
                        .OnDetailViewCollapse("onDetailViewCollapse")
                        .OnDetailViewExpand("onDetailViewExpand")
                        .OnDataBinding("onDataBinding2")
                        .OnRowDataBound("onRowDataBound")
                        .OnRowSelect("onRowSelect")
                        .OnDataBound("onDataBound")
                        .OnColumnResize("onColumnResize")
                        .OnColumnReorder("onColumnReorder")
                    )
                    .Selectable()
                    .KeyboardNavigation()
                    .Editable(
                        editable => editable.Mode(GridEditMode.InCell))
                )


Tags
Grid
Asked by
Charley
Top achievements
Rank 1
Share this question
or