-1
我想使用Kendo從Kendo DropDownListe檢索數據。KendoUI Knockoutjs Dropdownlist
PS我想這樣做,而無需使用淘汰賽Kendo.js
PS存在對jQuery的運行示例代碼。見下文
<input id="products" data-bind="DDList: { dataTextField: 'ProductName', dataValueField: 'ProductID', data: Product, value: selectedId }" />
$(document).ready(function() {
$("#products").kendoDropDownList({
dataTextField: "ProductName",
dataValueField: "ProductID",
dataSource: {
transport: {
read: {
dataType: "jsonp",
url: "https://demos.telerik.com/kendo-ui/service/Products",
}
}
}
});
});