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

Error when editing grid incell

2 Answers 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marlos
Top achievements
Rank 1
Marlos asked on 15 Apr 2014, 07:41 PM
Hello,

I created a grid using the example provided herehere and here.

When I click on any cell to edit it, the following error is triggered. Any help?

Uncaught TypeError: undefined is not a function         kendo.all.min.js:9
O                                       kendo.all.min.js:9
D                                       kendo.all.min.js:9
e.extend.kendoFocusable                 kendo.all.min.js:10
Sizzle.selectors.filter.PSEUDO          jquery-1.7.1.js:4605
Sizzle.filter                           jquery-1.7.1.js:4127
Sizzle                                  jquery-1.7.1.js:3955
Sizzle                                  jquery-1.7.1.js:5083
jQuery.fn.extend.find                   jquery-1.7.1.js:5339
u.extend.refresh                        kendo.all.min.js:20
u.extend.init                           kendo.all.min.js:20
(anonymous function)                    kendo.all.min.js:10
jQuery.extend.each                      jquery-1.7.1.js:658
jQuery.fn.jQuery.each                   jquery-1.7.1.js:271
e.fn.(anonymous function)               kendo.all.min.js:10
j.extend.editCell                       kendo.all.min.js:22
(anonymous function)                    kendo.all.min.js:22
jQuery.event.dispatch                   jquery-1.7.1.js:3256
elemData.handle.eventHandle             jquery-1.7.1.js:2875

The grid has the following code:

@(Html.Kendo().Grid<Kendo2.Models.Product>()
    .Name("grid")
    .Columns(c =>
        {
            c.Bound(b => b.Id).Hidden();
            c.Bound(b => b.Name);
            c.Bound(b => b.Company);
        }
    )
    .Editable(e => e.Mode(GridEditMode.InCell))
    .Sortable()
    .Pageable(p => p
        .Refresh(true)
        .PageSizes(new int[] {2, 10})
        .ButtonCount(5)
    )
    .DataSource(dataSource => dataSource
        .Ajax()
        .Model(model => model.Id(m => m.Id))
        .Read(read => read.Action("List", "Home"))
    )
)

2 Answers, 1 is accepted

Sort by
0
Marlos
Top achievements
Rank 1
answered on 16 Apr 2014, 11:37 AM
jQuery 1.7.1
Kendo 2014.1.318
Chrome 34.0.1847.116
Windows 7 SP1
0
Alexander Popov
Telerik team
answered on 17 Apr 2014, 09:59 AM
Hello Marlos,

I would recommend using a newer version of jQuery (see compatibility matrix) and make sure there are no duplicate script references.

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Marlos
Top achievements
Rank 1
Answers by
Marlos
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or