jQuery UI Widgets › Forums › General Discussions › Lists › DropDownList › how to set dropdown width by using their values width?
Tagged: auto, dropdown, DropDownList, dropDownWidth, item, jqxDropDownList, length, list, width
This topic contains 3 replies, has 2 voices, and was last updated by Dimitar 12 years ago.
Dropdownlist have some 3 items, but the width of dropdown it depends upon the values width.
Assume Dropdown width:200px, but i have 3 items 1) apple 2) banana color yellow 3) grapes
number(2) have more characters(maximum) so the dropdown width it should be increased, depends on the valus width. Please suggest.
Thanks.
Hello Siva,
You can modify the dropdown width manually by setting the dropDownWidth property to a suitable value.
Best Regards, Dimitar
jQWidgets team http://www.jqwidgets.com/
Hello Dimitar,
ya i used this dropDownWidth, but i want to set the width from the dropdown values (maximum characters) width. please reply
Hi Siva,
Unfortunately, there is no way to automatically set the dropdown width to the width of the longest item.
You must be logged in to reply to this topic.