Kendo UI Multiselect选中值不显示问题求助
Kendo UI MultiSelect选中值不显示问题求助
我遇到了Kendo UI MultiSelect的异常问题:组件的可选值列表能正常展示,但选择一个或多个值后,选中值的名称不会显示在输入框内,仅呈现一个空框。
相关状态截图:
- 可选值正常展示的状态
- 选中值后输入框为空的状态
以下是我的代码:
HTML部分
<div class="col-md-3"> <fieldset> <div class="form-group"> <label class="control-label">Assigned Attributes</label> <div class="demo-section k-content"> <select id="dropdownAttributes"></select> </div> </div> </fieldset> </div>
JavaScript部分
var days = [ { text: "First", value: "1" }, { text: "Second", value: "2" }, { text: "Third", value: "3" }, { text: "Fourth", value: "4" }, { text: "Fifth", value: "5" } ]; $("#dropdownAttributes").kendoMultiSelect({ dataTextField: "text", dataValueField: "value", dataSource: days, height: 200, filter: "contains" });
恳请大家帮忙排查解决这个问题。
内容的提问来源于stack exchange,提问作者JonasRempel
相关产品推荐
相关产品推荐

