如何在淘汰赛剑道设置占位符多选

问题描述:

如何在淘汰赛剑道设置占位符(在选择optionCaption)多选如何在淘汰赛剑道设置占位符多选

HTML:

<select data-bind="kendoMultiSelect: { data: doc, value: selecteddoc}"></select> 

看来你已经知道在经典的淘汰赛optionsCaption办法。 Kendo-ui显然不提供占位符。

你可以尝试的是添加一个额外的第一个值,并将其隐藏在打开状态。 $dropdownElement.getKendoDropDownList().list.find("li.item").first().hide();

// Classic knockout way just in case 
<select data-bind="options: optionsArray, optionsCaption: 'My Caption placeholder ... ', selectedOptions: SelectedOptionsArray" size="5" multiple="true" multiple></select> 

否则你总是可以参考这个。
Is there a way to add a placeholder to a text field in KendoUI Grid?

+0

经典淘汰赛的方式不行! – Federico

+0

这是一个多选而不是DropDownList – Federico