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

Dropdown width not matching input field

1 Answer 191 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 25 Apr 2012, 01:20 AM
Why is it that in the demos for both DropDownList and ComboBox, the width of the dropdown matches the input field, with apparently no special action being taken, but in my usage the input field is constant at 149px while the dropdown is only wide enough to accomodate the content?

I understand why the input field is 149px... because it's hard-code in kendo.common.css as "width: 12.4em;" but why is the dropdown width not matching?

This is all with content being added dynamically via ajax responses.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Apr 2012, 12:38 PM
Hello Gary,

Normally the dropdown width should match the widget's width, unless specified otherwise, as in the Templates demo. Can you demonstrate the problem in a simple example?

Kind regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
DropDownList
Asked by
Gary
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or