相关疑难解决方法(0)

取消内联kendo网格中的更新删除该行

我使用两个剑道内联网格父母和孩子.子网格包含产品列表,当用户从子网格中选择产品(多选)并单击保存按钮时,它将插入到父网格中.

儿童网格:

var selectedIds = {};

var ctlGrid = $("#KendoWebDataGrid3");
ctlGrid.kendoGrid({
    dataSource: {
        data:data1,
        schema: {
            model: {
                id: 'id',
                fields: {
                    select: {
                        type: "string",
                        editable: false
                    },

                    Qty: {
                        editable: true,
                        type: "number",
                        validation: { min: 1, required: true }
                    },
                    Unit: {
                         editable: false,
                         type: "string"
                    },
                    StyleNumber: {
                         editable: false,
                        type: "string"
                    },
                    Description: {
                         editable: false,
                        type: "string"
                    }


                }
            }
        },
        pageSize: 5
    },
    editable: 'inline',
    selectable: "multiple",
    sortable: {
        mode: 'single',
        allowUnsort: false …
Run Code Online (Sandbox Code Playgroud)

event-handling cancel-button kendo-ui kendo-treeview kendo-grid

7
推荐指数
2
解决办法
1万
查看次数