Getting error every time i click on grid

2 posts, 0 answers
  1. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 22 Aug 2012 Link to this post

    When i click on grid i get this error

    Syntax error, unrecognized expression: tr:not(.k-grouping-row) > td:not(.k-hierarchy-cell,.k-detail-cell,.k-group-cell,.k-edit-cell,:has(a.k-grid-delete)) 

     

    jquery-1.8.0.js, line 4512 character 2

    The grid loads with data, paging and sorting works dispite the error, but I can not batch edit, double clicking on cell does not bring up editing.

    Any ideas?

    Thanks

    my grid

    $(document).ready(function () {
                dataSource = new kendo.data.DataSource({
                    transport: {
                        read:  {
                            url: "/franchisees/stock/EmailKendo",
                            dataType: "json"
                        },
                        update: {
                            url: "/franchisees/stock/Update",
                            dataType: "jsonp"
                        },
                        destroy: {
                            url: "/franchisees/stock/Destroy",
                            dataType: "jsonp"
                        },
                        create: {
                            url: "/franchisees/stock/Create",
                            dataType: "jsonp"
                        },
                        parameterMap: function(options, operation) {
                            if (operation !== "read" && options.models) {
                                return {models: kendo.stringify(options.models)};
                            }
                        }
                    },
                    batch: true,
                    pageSize: 25,
                    schema: {
                        model: {
                            id: "ProductID",
                            fields: {
                                ProductId: { editable: false, nullable: false },
                                Name: { validation: { required: true } },
                                Level: { type: "number", validation: { required: true } },
                                MinQuantity: { type: "number" },
                                OrderByThe: { type: "number" },
                                Order: { type: "number", editable: true }
                    }
                        }
                    }
                });
     
            $("#grid").kendoGrid({
                dataSource: dataSource,
                navigatable: true,
                sortable: true,
                pageable: true,
                toolbar: ["create", "save", "cancel"],
                columns: [
                    "Name",
                    { field: "Level",  width: 150 },
                    { field: "MinQuantity", width: 100 },
                    { field: "OrderByThe", width: 100 },
                    { field: "Order", width: 100 }],
                editable: true
            });
        });

  2. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 22 Aug 2012 Link to this post

    I solved problem i did not include jquery.min.js, i was using jquery.1.8.0
  3. Kendo UI is VS 2017 Ready
Back to Top