or
transport: { read: function(options) { $.ajax({ url: crudBaseUrl + "/query", dataType: "json", data: { f: "json", token: token, outFields: "*", returnGeometry: true, outSR: 3857, where: "LN_NO='" + ownerid + "'" }, type: "POST", success: function(result) { window.successResult = result; options.success(result.features); } }); },model: { id: "OBJECTID", fields: { OBJECTID: { type: "number", editable: false }, LN_NO: { type: "string" }, QSEC: { type: "string" }, SECTION: { type: "string" }, TOWNSHIP: { type: "string" }, N_S: { type: "string" }, RANGE: { type: "string" }, E_W: { type: "string" }, AF: { type: "string" }, LATITUDE: { type: "string" }, LONGITUDE: { type: "string" }, METHODCODE: { type: "string" }, REFERENCE: { type: "string" }, ACCURACY: { type: "string" }, R: { type: "string" } }}columns: [ { field: "attributes.OBJECTID", title: "OID", }, { field: "attributes.LN_NO", title: "Loc Number", }, { field: "attributes.QSEC", title: "QSEC" }, { field: "attributes.SECTION", title: "Section", }, { field: "attributes.TOWNSHIP", title: "Township" }, { field: "attributes.N_S", title: "N / S" }, { field: "attributes.RANGE", title: "Range" }, { field: "attributes.E_W", title: "E / W" }, { field: "attributes.AF", title: "Acre/Feet" }, { field: "attributes.LATITUDE", title: "Latitude" }, { field: "attributes.LONGITUDE", title: "Longitude" }, { field: "attributes.METHODCODE", title: "Method Code" }, { field: "attributes.REFERENCE", title: "Reference" }, { field: "attributes.ACCURACY", title: "Accuracy" }, { field: "attributes.R", title: "Reservation" }, { command: ["edit", "destroy"], title: " ", width: "200px" } ],<strong>ALIAS INFORMATION</strong><br /><br /><form id="offenderAliasForm"> <div id="grdAliases"></div></form><script src="/sdsoia/Scripts/OffenderFunctions/OffenderAliases.js"></script><script type="text/javascript"> $(function () { initializeAliasForm(); });</script>var crudBaseUrl = "/sdsoia/Services/Aliases.asmx";var currentOffenderId = $.cookie("CurrentPendingOffenderId");var readData = "{ pendingOffenderId: " + currentOffenderId + " }";var aliasDataSource = new kendo.data.DataSource({ transport: { read: { url: crudBaseUrl + "/GetAliasesForPendingOffender", dataType: "json", contentType: "application/json", type: "POST", dataFilter: function (data) { var msg = eval('(' + data + ')'); return msg.d; } }, update: { url: crudBaseUrl + "/UpdateAliasesForPendingOffender", dataType: "json", contentType: "application/json", type: "POST" }, parameterMap: function (data, type) { console.log("Using datasource for:", type, "; data:", data); switch (type) { case "read": data = { pendingOffenderId: currentOffenderId } break; case "update": break; } return kendo.stringify(data); } }, schema: { model: { id: "Id", fields: { Id: { editable: false }, OffenderId: { editable: false }, Name: {}, Ssn: {}, Dob: { type: "date" }, Timestamp: { editable: false } } } }});var grdAliases = $("#grdAliases").kendoGrid({ columns: [ { field: "Id", hidden: true }, { field: "OffenderId", hidden: true }, { field: "Name", title: "Name (Last, First, Middle)" }, { field: "Ssn", title: "SSN", format: "{0: ###-##-####}", editor: function (container, options) { $("<input name='" + options.field + "' />") .appendTo(container) .kendoMaskedTextBox({ mask: "###-##-####" }); } }, { field: "Dob", title: "DOB", type: "date", format: "{0:d}" }, { field: "Timestamp", hidden: true }, { command: [ { name: "edit", text: { edit: "Edit", cancel: "Cancel", update: "Update" } }, { name: "destroy", text: "Delete" } ] } ], editable: { mode: "inline" }, selectable: true, dataSource: aliasDataSource, toolbar: ["create"], pageable: { info: true, refresh: false, pageSizes: false, previousNext: false, numeric: false, input: false, messages: { display: "{2} records.", empty: "No records found." } },}).data("kendoGrid");function initializeAliasForm() {}var ds = new kendo.data.DataSource({ transport: { read: { url: 'stations', dataType: 'json' }, update: { url: 'stations', dataType: 'json', type: 'PUT' }, destroy: { url: 'stations', dataType: 'json', type: 'DELETE' }, create: { url: 'stations', dataType: 'json', type: 'POST' }, parameterMap: function (data, operation) { if (operation !== "read" && data) { return JSON.stringify(data); } } }, batch: false, schema: { model: { id: "Id", fields: {//some fields... } } } });01. @(Html.Kendo().TreeView()02. .Name("treeview2")03. .Checkboxes(checkboxes => checkboxes04. .Name("checkedFiles")05. .CheckChildren(true)06. )07. .LoadOnDemand(false)08. .ExpandAll(true)09. .DataTextField("Name")10. .DataSource(dataSource => dataSource.Read(read => read.Action("GetAssemblies", "FrontDataSource"))))