You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.26 06:24:31