or

| data: { | |
| name: function() { | |
| return "michael"; | |
| } | } |
$(this).kendoGrid(...)
I need to turn it off for a certain case. Is that possible?

var myDataSource = { schema: { model: { id: "RecordID", fields: { RecordID: { editable: false, nullable: true }, FirstName: { editable: true }, LastName: { editable: true } } } }, type: "odata", serverPaging: true, serverSorting: true, pageSize: 100, batch: false, transport: { read: "http://localhost:1625/Data/GetPatients", create: { url: "http://localhost:1625/Data/Create", contentType: "application/json; charset=utf-8", type: "POST" }, update: { url: "http://localhost:1625/Data/Update", contentType: "application/json; charset=utf-8", type: "POST" }, destroy: { url: "http://localhost:1625/Data/Destroy", contentType: "application/json; charset=utf-8", type: "POST", dataType: "json" }, parameterMap: function (data, operation) { if (operation !== "read") { return kendo.stringify(data); } else { return kendo.data.transports["odata"].parameterMap(data, operation); } } }};var myDataSource2 = new kendo.data.DataSource({ schema: { model: { id: "RecordID", fields: { RecordID: { editable: false, nullable: true }, FirstName: { editable: true }, LastName: { editable: true } } } }, type: "odata", serverPaging: true, serverSorting: true, pageSize: 100, batch: false, transport: { read: "http://localhost:1625/Data/GetPatients", create: { url: "http://localhost:1625/Data/Create", contentType: "application/json; charset=utf-8", type: "POST" }, update: { url: "http://localhost:1625/Data/Update", contentType: "application/json; charset=utf-8", type: "POST" }, destroy: { url: "http://localhost:1625/Data/Destroy", contentType: "application/json; charset=utf-8", type: "POST", dataType: "json" }, parameterMap: function (data, operation) { if (operation !== "read") { return kendo.stringify(data); } else { return kendo.data.transports["odata"].parameterMap(data, operation); } } }});$(document).ready(function () { $("#grid").kendoGrid({ dataSource: myDataSource, //This is working but if you change it to myDataSource2, then it doesn't work height: 500, scrollable: { virtual: true }, editable: true, sortable: true, toolbar: ["create", "save"], columns: ["RecordID", "FirstName", "LastName", { command: "destroy"}] });});