0
我使用KendoUI創建級聯dropdownlist。 問題是級聯中的第二個和第三個下拉列表中只有一個應該在其中。劍道流氓DropDownlists和可用下拉項目
的HTML
<div id="goodies">
<input id="uno" data-bind="source: unoTypes, value: uno" />
<input id="dos" data-bind="source: dosTypes, value: dos" />
<input id="tres" data-bind="source: tresTypes, value: tres" />
</div>
和JavaScript
data = window.kendo.observable({
uno: null,
dos: null,
tres: null,
baseRomType: null,
unoTypes: [
{ name: "Bing", id: 1 },
{ name: "Bang", id: 2 },
{ name: "Bong", id: 3 }
],
dosTypes: [
{ name: "Ding", id: 1 },
{ name: "Dang", id: 2 },
{ name: "Dong", id: 3 }
],
tresTypes: [
{ name: "Ring", id: 1 },
{ name: "Rang", id: 2 },
{ name: "Rong", id: 3 }
],
});
window.kendo.bind($("#goodies"), data);
$('#uno').kendoDropDownList({
dataTextField: "name",
dataValueField: "id",
optionLabel: 'Please Select for Uno'
});
$('#dos').kendoDropDownList({
dataTextField: "name",
dataValueField: "id",
optionLabel: 'Please Select for Dos',
cascadeFrom: "uno"
});
$('#tres').kendoDropDownList({
dataTextField: "name",
dataValueField: "id",
optionLabel: 'Please Select for Tres',
cascadeFrom: "dos"
});
難道我做錯了什麼或者這是一個錯誤?我在KendoUI 2013.Q1(2013.1.319)