-1

私は剣道を使用しており、グリッドで作業しています。
このデモは、 剣道グリッド一括編集の剣道 Web ページから見つけました。

このデモでは、データ ソースをバインドしようとしています。
それは完全に機能しますが、破壊するだけで機能しません。
私もこれを試しています:

        $(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"
                });
            });

どうすればこれを行うことができますか?

4

2 に答える 2

0

「destroy」ではなく、「destory」という dataSource トランスポート関数を綴りました。

于 2013-07-15T14:31:37.287 に答える