Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要动态绑定一个剑道下拉列表。
以下是我的代码:
dropdown1.selected(0); dropdown.Value(0);
但它不起作用。请建议。
首先你必须访问下拉列表,
var dropdownlist = $('#DropdownlistID').data("kendoDropDownList");
然后使用 Value(string value_to_be_displayed) 函数,
dropdownlist.value("Oranges");
请注意,该值不与下拉列表项的索引一起使用。它只接受字符串并显示字符串。