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

DropDown Auto Size

3 Answers 170 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 18 Dec 2013, 10:32 PM
Hi All,

Can anyone please tell me how to auto-size the drop-down of a combobox in code-behind?  I have found the following link:
http://www.telerik.com/help/aspnet-ajax/combobox-auto-width.html

Ideally, both height and width would auto-adjust with the height maxing out at the bottom of the screen.  Is this at all possible?

Thanks,
Mark

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Dec 2013, 06:03 AM
Hi Mark,

Please have a look into the following code snippet to set the DropDownAutoWidth from the server side and check this help documentation for adjust the height property.

C#:
RadComboBox1.DropDownAutoWidth = Telerik.Web.UI.RadComboBoxDropDownAutoWidth.Enabled;

Thanks,
Shinu.

 
0
Wendy Prince
Top achievements
Rank 1
answered on 19 Dec 2013, 06:01 PM
Is this a feature of newer versions of Telerik?
0
Shinu
Top achievements
Rank 2
answered on 20 Dec 2013, 03:23 AM
Hi Wendy Prince,

RadComboBox DropDownAutoWidth is a Q1 2013 release version property. Please have a look into this online demo and help article.

Thanks,
Shinu.
Tags
ComboBox
Asked by
Mark
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Wendy Prince
Top achievements
Rank 1
Share this question
or