Kendo UI Multi Select List Item Per Row

微笑、不失礼 提交于 2019-12-11 23:44:57

问题


Anyone know how to use the Kendo UI Multiselect so it displays the selected items in a list vertically instead of in-line.

By default it displays it like this:

| [Item 1] [Item 2] [Item 3] | 

But I want to display it like this:

| [Item 1] |
| [Item 2] |
| [Item 3] |

Does anyone know how I can achieve this?


回答1:


all you need to do is to change the width of your multiselect

 .HtmlAttributes(new { @style="width: 100px;"})



回答2:


You can target the items inside the control with this style, so they all become full-width:

<style>
    div.k-multiselect-wrap .k-button {
        width: 100%;
   } 
</style>


来源:https://stackoverflow.com/questions/28161534/kendo-ui-multi-select-list-item-per-row

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!