Kendo UI Multi Select List Item Per Row

2019-09-01 16:37发布

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?

2条回答
对你真心纯属浪费
2楼-- · 2019-09-01 17:04

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>
查看更多
ら.Afraid
3楼-- · 2019-09-01 17:12

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

 .HtmlAttributes(new { @style="width: 100px;"})
查看更多
登录 后发表回答