Error when editing grid incell

3 posts, 0 answers
  1. Marlos
    Marlos avatar
    3 posts
    Member since:
    Apr 2014

    Posted 15 Apr 2014 Link to this post

    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. Marlos
    Marlos avatar
    3 posts
    Member since:
    Apr 2014

    Posted 16 Apr 2014 in reply to Marlos Link to this post

    jQuery 1.7.1
    Kendo 2014.1.318
    Chrome 34.0.1847.116
    Windows 7 SP1
  3. Alexander Popov
    Admin
    Alexander Popov avatar
    1444 posts

    Posted 17 Apr 2014 Link to this post

    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.

     
Back to Top