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

Combobox width

1 Answer 126 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 23 Aug 2010, 08:08 AM
I am using RadControls_for_ASP.NET_AJAX_2009_1_311.
<telerik:RadComboBox ID="radProject" AutoPostBack="True" 
runat="server" DropDownWidth="240px"          onselectedindexchanged="radProject_SelectedIndexChanged"                         MarkFirstMatch="True" ondatabinding="radProject_DataBinding" Skin="Web20" 
OnClientBlur="OnClientBlurHandler">
</telerik:RadComboBox>

In this i wanted to set dropdown width for the combobox so i have set DropDownWidth = "240px". This width is required only for some logins i.e the text is long only in some cases.
My question is can i set something like minimumdropdownwith and maximumdropdownwidth so that the combobox dropdownwidth will increase or decrease based on the text that will be loaded in the Combobox.
i found a link http://www.telerik.com/help/winforms/combo_propertiessizing.html but this is for winforms. Can i achieve the same in ajax controls.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Sep 2010, 02:48 PM
Hello Senthil,


I hope the following code library will help you in this.
Dynamic Dropdown width


Regards,
Shinu.
Tags
ComboBox
Asked by
Senthil ramna
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or