This is a migrated thread and some comments may be shown as answers.

Angular2 + Kendo MultiSelect list each item per row

1 Answer 118 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
yamaha
Top achievements
Rank 1
yamaha asked on 11 Jul 2017, 03:28 PM
I have an Angular2 Kendo MultiSelect componenet in my app. My business requirement is to list each selection per row instead of stacking them next to each other. How do I achieve this?
I did a search and found this thread. Implemented the proposed style by setting width to 100px but this would not work in my scenario because the multiselect selections are going to be longer than 100px.
One way that I found this to work with my multiselect is by setting width to 500px for the multiselect control. In that case it is dropping each item in its own row but the size of the multiselect is not taking the full width of the page.
How can i achieve each item per row with Kendo Multiselect length set to full width ?

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 13 Jul 2017, 10:06 AM
Hi,

You can customize the built-in styling as follows to achieve the desired layout:

styles: [`
    >>> li.k-button {
      clear: left;
    }
     
    >>> ul.k-reset {
      overflow: hidden;
    }
  `]

http://plnkr.co/edit/tW2Hebi5t7KTaH600stZ?p=preview

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
MultiSelect
Asked by
yamaha
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or