kendoGrid弹出编辑取消按钮删除现有行

时间:2013-04-04 15:31:01

标签: kendo-grid

我已经回顾了这个问题的其他答案,但没有解决这个问题。在kendoGrid上使用弹出编辑器时,取消会完全删除该行。 这是代码:

addWindow.element.find("#InventoryChecks").kendoGrid({
                               dataSource: {
                                        data: checkCallDetail.InventoryChecks,
                                        schema: {
                                            model: {
                                                id: "Id",
                                                fields: {
                                                    Id: { type: "number" },
                                                    BillOfLading: { type: "string" },
                                                    ReportedPieces: { type: "number" },
                                                    ReportedWeight: { type: "number" }

                                                }
                                            }
                                        },
                                        aggregate: [ 
                                            { field: "ReportedPieces", aggregate:"sum" },
                                            { field: "ReportedWeight", aggregate: "sum" }]
                                    },
                                    height: 200,
                                    scrollable: true,
                                    toolbar: ["create"], 
                                    columns: [
                                        { field: "BillOfLading", title: "BOL", width: "100px", footerTemplate: "Total: " },
                                        { field: "ReportedPieces", title: "Quantity", width: "70px", footerTemplate: " #= sum # " },
                                        { field: "ReportedWeight", title: "Weight", width: "70px", footerTemplate: " #= sum # " },
                                        { command: ["edit"], title: " "}
                                    ],
                                    editable: {
                                        mode: "popup",

                                    }
                                })

有什么建议吗?

0 个答案:

没有答案