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

Getting error every time i click on grid

1 Answer 162 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alan Mosley
Top achievements
Rank 1
Alan Mosley asked on 22 Aug 2012, 09:45 AM

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
        });
    });

1 Answer, 1 is accepted

Sort by
0
Alan Mosley
Top achievements
Rank 1
answered on 22 Aug 2012, 10:44 AM
I solved problem i did not include jquery.min.js, i was using jquery.1.8.0
Tags
Grid
Asked by
Alan Mosley
Top achievements
Rank 1
Answers by
Alan Mosley
Top achievements
Rank 1
Share this question
or