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

Incell editing doesn't work

2 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jelena
Top achievements
Rank 1
Jelena asked on 27 Sep 2012, 11:24 AM
Hello,
I appreciate any help. 
We are using 2012.2.723. 
 Just found sample  and pasted into my project; still having the same error what I have in my code:
Uncaught 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))  
Is it a wrong version?

This is sample from forum just selects row and gives an error above:
 <div id="grid"></div>


            <script>
                $(document).ready(function () {
                    var crudServiceBaseUrl = "http://demos.kendoui.com/service",
                        dataSource = new kendo.data.DataSource({
                            transport: {
                                read: {
                                    url: crudServiceBaseUrl + "/Products",
                                    dataType: "jsonp"
                                },
                                update: {
                                    url: crudServiceBaseUrl + "/Products/Update",
                                    dataType: "jsonp"
                                },
                                destroy: {
                                    url: crudServiceBaseUrl + "/Products/Destroy",
                                    dataType: "jsonp"
                                },
                                create: {
                                    url: crudServiceBaseUrl + "/Products/Create",
                                    dataType: "jsonp"
                                },
                                parameterMap: function (options, operation) {
                                    if (operation !== "read" && options.models) {
                                        return { models: kendo.stringify(options.models) };
                                    }
                                }
                            },
                            batch: true,
                            pageSize: 30,
                            schema: {
                                model: {
                                    id: "ProductID",
                                    fields: {
                                        ProductID: { editable: false, nullable: true },
                                        ProductName: { validation: { required: true} },
                                        UnitPrice: { type: "number", validation: { required: true, min: 1} },
                                        Discontinued: { type: "boolean" },
                                        UnitsInStock: { type: "number", validation: { min: 0, required: true} }
                                    }
                                }
                            }
                        });


                    $("#grid").kendoGrid({
                        dataSource: dataSource,
                        navigatable: true,
                        selectable: "multiple",
                        pageable: true,
                        height: 400,
                        toolbar: ["create", "save", "cancel"],
                        columns: [
                            "ProductName",
                            { field: "UnitPrice", title: "Unit Price", format: "{0:c}", width: 150 },
                            { field: "UnitsInStock", title: "Units In Stock", width: 150 },
                            { field: "Discontinued", width: 100 },
                            { command: "destroy", title: "&nbsp;", width: 110}],
                        editable: true
                    });
                });
            </script>

Thanks in advance 

Jelena

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 01 Oct 2012, 04:13 PM
Hi Jelena,

 

From the provided information it seems that currently your project is using unsupported version of jQuery. Please note that version 2012.2.723 of KendoUI supports only jQuery v.1.7 and If you need to use jQuery v1.8+ you should upgrade KendoUI to SP1 - v.2012.2.913.

For more information you can check KendoUI JavaScript Dependencies article.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jelena
Top achievements
Rank 1
answered on 01 Oct 2012, 07:31 PM
Vladimir, 
Thank you! We updated and the issue has been resolved.
Jelena
Tags
Grid
Asked by
Jelena
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Jelena
Top achievements
Rank 1
Share this question
or