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>