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

ComboBox DropDown Width

3 Answers 96 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Senthil ramna
Top achievements
Rank 1
Senthil ramna asked on 25 Aug 2010, 05:04 AM
I am using Radcombobox version 2009.1.311.35.
In this i wanted to increase the dropdown width as some of the text were of larger length, so i set the DropDownWidth size to 240px and the width of my ComboBox is 150px (standard i am using in all my pages).
The question is this how can i make sure that the DropDownWidth will increase and decrease itself based on the size of the Items in the list. I found this http://www.telerik.com/help/winforms/combo_propertiessizing.html which looks pretty cool, where i can set the maximum and minimum DroDownSIze for the ComboBox, but this is for winforms.
Can you tell me how i can achieve the same for ASP.NET AJAX ComboBox.

3 Answers, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Veteran
answered on 29 Aug 2010, 03:57 AM
Hmmm, it might be hard...never tried it myself actually....especially with those older control versions...but it renders (at least now anyway) as Divs and ULs...so some clever CSSing probably could do it on the DropDown class somewhere...
0
Accepted
Shinu
Top achievements
Rank 2
answered on 30 Aug 2010, 01:32 PM
Hello Senthil,


I found a code library regarding how to set the DropDownWidth according to content. I hope this would help you.
Dynamic Dropdown width


-Shinu.
0
Senthil ramna
Top achievements
Rank 1
answered on 31 Aug 2010, 05:14 AM
Guys thanks for the response.
Thanks Shinu i tried the code library and customized it, it worked like a charm.

Tags
ComboBox
Asked by
Senthil ramna
Top achievements
Rank 1
Answers by
sitefinitysteve
Top achievements
Rank 2
Veteran
Shinu
Top achievements
Rank 2
Senthil ramna
Top achievements
Rank 1
Share this question
or