or
type: 'POST', url: "http://rest.site.comm/rest/isc/packagecontents", data: xmlstring, dataType: "xml")
var dataSource = new kendo.data.DataSource({ transport: { read: { type: "POST", // specify the XML file to read. The same as read: { url: "books.xml" } url: "http:/rest.site.com/rest/isc/packagecontents/" , dataType: "xml", data: xmlstring }
$("#Accounts").kendoComboBox({ dataTextField: "AcctName", dataValueField: "AcctCd", dataSource: { transport: { read: "/Home/GetAccounts" } }, template: $("#scriptTemplate").html(), filter: "startswith" }); var combobox = $("#Accounts").data("kendoComboBox"); // set width of the drop-down list combobox.list.width(400); var sharableDataSource = new kendo.data.DataSource({ transport: { read: { url: "@Url.Action("GetSecurities","Home")", dataType: "json" }, type:"POST" } }); $("#ResidualRec").kendoComboBox({ datasource:sharableDataSource, filter: "startswith" });<select id="ResidualSec" data-value-field="Cusip" data-text-field="SecName" data-role="combobox" placeholder="Enter Residual" data-bind="value: Residual"></select> <select id="UnderlyingSec" data-role="combobox" data-value-field="SecName" data-text-field="Cusip" placeholder="Enter Underlying" data-bind="value: Underlying"></select> <select id="FloaterSec" data-role="combobox" data-text-field="SecName" data-value-field="CUSIP" placeholder="Enter Floater" data-bind="value: Floater"></select><div id="allocation"> <div class="selector"> <select id="Accounts" style="width: 225px" data-role="combobox" data-value-field="AcctCd" data-text-field="AcctName" data-bind="value: AcctCd" placeholder="Select Funds..."></select>$("#JobAttachments").kendoGrid({ columns: [ { title: "Filename", template: "<a href='../UploadedFiles/${ SavedFileName }'>${ OriginalFileName }</a>", width: "250px" }, { field: "EnterBy", title: "Uploaded By", width: "200px"}, { command: "destroy", title: "Delete", width: "100px" } ], toolbar: ["save", "cancel"], // specify toolbar commands editable: true, // enable editing dataSource: { schema: { data: "d", // ASMX services return JSON in the following format { "d": <result> }. Specify how to get the result. model: { // define the model of the data source. Required for validation and property types. id: "JobTaskId", fields: { AttachmentID: { editable: false, nullable: false }, JobId: { editable: false, nullable: false }, OriginalFileName: { editable: false }, SavedFileName: { editable: false }, AttachmentType: { }, Notes: { }, EnterBy: {} //, //EnterDate: { type: "date"} } } }, batch: false, // enable batch editing - changes will be saved when the user clicks the "Save changes" button transport: { create: { url: "../WebServices/JobAttachmentWebservice.asmx/NotUsed", contentType: "application/json; charset=utf-8", // tells the web service to serialize JSON type: "POST" //use HTTP POST request as the default GET is not allowed for ASMX }, read: { url: "../WebServices/JobAttachmentWebservice.asmx/Read", contentType: "application/json; charset=utf-8", // tells the web service to serialize JSON type: "POST" //use HTTP POST request as the default GET is not allowed for ASMX }, update: { url: "../WebServices/JobAttachmentWebservice.asmx/Update", contentType: "application/json; charset=utf-8", // tells the web service to serialize JSON type: "POST" //use HTTP POST request as the default GET is not allowed for ASMX }, destroy: { url: "../WebServices/JobAttachmentWebservice.asmx/Delete", contentType: "application/json; charset=utf-8", // tells the web service to serialize JSON type: "POST" //use HTTP POST request as the default GET is not allowed for ASMX }, parameterMap: function (data, operation) { if (operation != "read") { // web service method parameters need to be send as JSON. The Create, Update and Destroy methods have a "products" parameter. return JSON.stringify({ jobView: data.models }) } else { return JSON.stringify({ JobId: currentJobId }) } } } }});