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

height of dropdown

1 Answer 49 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 17 Jan 2013, 12:02 PM
How  can i show the height of dropdown based on the number of items in the radcombobox? 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Jan 2013, 12:16 PM
Hi,

One suggestion is that you can calculate the Height by multiplying the number of items and the height of a single item as follows.

C#:
int calculatedHeight = RadComboBox1.Items.Count * 22;
RadComboBox1.Height = calculatedHeight;

Please take a look into this for more information.

Hope this helps.

Regards,
Princy.
Tags
ComboBox
Asked by
beeta one
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or