Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo UI dropdownlist takes size of biggest option

 var ddlViews = $('#ddlViews').data("kendoDropDownList");
        ddlViews.list.width("auto");

I have added width to be auto but its not working, also the width of the dropdown box gets the max width of the item selected and overflows out of the box. I want the dropdown box to have a fixed width, but the dropdown list items should show contents in single line. As the normal dropdown would work.

like image 352
Raza Avatar asked Jul 17 '13 06:07

Raza


1 Answers

.k-list-container{
    min-width:126px !important;//give a min width of your choice
    width: auto!important;
}
.k-list
{
    width:auto !important;
}

dropdown

link to js fiddle

like image 120
Arun Killu Avatar answered Sep 22 '22 06:09

Arun Killu