kendo ui - Grid batch editing destory not work on my local system -


i using kendo, , work on grid.
found demo kendo web page of kendo grid batch editing.

in demo tring bind data source.
works destroys , not work on them.
trying this:

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

can please know me how can this?

you spelled datasource transport function "destory" instead of "destroy".


Comments