【问题标题】:Grid batch editing destory not work on my local system网格批量编辑破坏在我的本地系统上不起作用
【发布时间】:2013-07-15 11:31:52
【问题描述】:

我正在使用剑道, 并使用网格进行处理。
我从kendo web page 找到了这个演示 剑道网格批量编辑。

在这个演示中,我试图绑定我的数据源。
它可以完美地工作,但只会破坏它们并且对它们不起作用。
我也在尝试这个:

        $(document).ready(function () {
                         var dataSource = new kendo.data.DataSource({
                                 transport: {
                                             destory:  {
                                             url: "<?php echo site_url('search_result_queue/destory_urls_fields').'/'.$id; ?>",
                                             dataType: "json",
                                     }
                            },
                            batch: true,
                            pageSize: 20,
                            schema: {
                                model: {
                                    id: "id",
                                    fields: {
                                         regex_id: "ProductName",
                                         value: "Race",
                                         event_url:"url"
                                    }
                                }
                            }
                        });

                    $("#grid").kendoGrid({
                        dataSource: dataSource,
                        navigatable: true,
                        pageable: true,
                        height: 430,
                        toolbar: ["create","save", "cancel"],
                        columns: [
                        { field: "key", title: "field", width: 110 },
                        { field: "value", title: "Units In Stock", width: 110 },
                        { field: "event_url", width: 110 },
                        { command: "destroy", title: " ", width: "90px" }],
                    editable: true,
                    destory:"inline"
                });
            });

谁能知道我该怎么做?

【问题讨论】:

    标签: kendo-ui


    【解决方案1】:

    您将 dataSource 传输函数拼写为“destory”而不是“destroy”。

    【讨论】:

      【解决方案2】:

      你需要检查destroy的拼写。在你的代码中它是“destory”它应该是“destroy”。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-01-18
        • 1970-01-01
        • 2022-01-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多